Reputation: 77
i hope someone here can help me cause iam really struggling with this for about 12 hours+.
I try to use Django with MongoDb Using the following Instruction for the packages http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-django-mongodb-engine/
which want me to install
pip install ***ps://bitbucket.org/wkornewald/django-nonrel/get/tip.tar.gz
pip install ***ps://bitbucket.org/wkornewald/djangotoolbox/get/tip.tar.gz
pip install ***ps://github.com/django-nonrel/mongodb-engine/tarball/master
I managed the first 2, however I get the following errors when I try to install the mongodb-engine.
I tried various forms to install it like "pip install django-mongodb-engine
"
"C:\Users\Burnie\Anaconda3\Scripts>pip install django-mongodb-engine Collecting django-mongodb-engine Using cached django-mongodb-engine-0.6.0.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 20, in File "C:\Users\Burnie\AppData\Local\Temp\pip-build-ntl4z4sp\django-mongodb-engine\setup.py", line 3, in import django_mongodb_engine as distmeta File "C:\Users\Burnie\AppData\Local\Temp\pip-build-ntl4z4sp\django-mongodb-engine\django_mongodb_engine__init__.py", line 12, in from django.conf import settings File "C:\Users\Burnie\Anaconda3\lib\site-packages\django\conf__init__.py", line 88 except ImportError, e: ^ SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Burnie\AppData\Local\Temp\pip-build-ntl4z4sp\django-mongodb- engine"
MySystem:
Windows 7,
Anaconda (as python distribution) 64bit
I hope someone can help me on that.
Upvotes: 1
Views: 1214
Reputation: 3177
The bitbucket versions of the code are pretty old now. You should use the ones on github instead.
pip install https://github.com/django-nonrel/django/tarball/master
pip install https://github.com/django-nonrel/mongodb-engine/tarball/master
pip install https://github.com/django-nonrel/djangotoolbox/tarball/master
There's also some more up to date instructions on getting this working available in the mongodb-engine documentation
Upvotes: 1