Advertisement
hellboy2k8

mongoDB_error

May 18th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "../hs.py", line 1, in <module>
  3. from hadoopstack.main import app
  4. File "/home/hellboy2k8/Documents/siel/HadoopStack/hadoopstack/main.py", line 9, in <module>
  5. mongo = PyMongo(app)
  6. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/flask_pymongo/__init__.py", line 107, in __init__
  7. self.init_app(app, config_prefix)
  8. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/flask_pymongo/__init__.py", line 221, in init_app
  9. db = cx[dbname]
  10. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1101, in __getitem__
  11. return self.__getattr__(name)
  12. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/flask_pymongo/wrappers.py", line 40, in __getattr__
  13. attr = super(MongoClient, self).__getattr__(name)
  14. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1090, in __getattr__
  15. return database.Database(self, name)
  16. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/pymongo/database.py", line 73, in __init__
  17. _check_name(name)
  18. File "/home/hellboy2k8/Documents/siel/HadoopStack/venv/local/lib/python2.7/site-packages/pymongo/database.py", line 39, in _check_name
  19. "character %r" % invalid_char)
  20. pymongo.errors.InvalidName: database names cannot contain the character '.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement