HumanDynamics / openPDS

openpds.media.mit.edu
MIT License
110 stars 33 forks source link

"No module named django": something wrong with kombu #51

Open FangxinTHU opened 7 years ago

FangxinTHU commented 7 years ago

When you get the error "No module named django", maybe it's noting about your django but a package called kombu.....

When installing the packages in requirment.txt, it installed django-celery-with-mongodb-3.0 django-celery-3.1.17 celery-4.0.0 kombu-4.0.0

Here the reason for kombu-4.0.0: "Collecting kombu<5.0,>=4.0 (from celery>=3.1.15->django-celery<4.0,>=3.0->django-celery-with-mongodb->-r requirements.txt (line 5))"

But ! ! ! In openPDS\openpds\settings.py Line 142 'kombu.transport.django' is in the list of INSTALLED_APPS, while there no kombu.transport.django module in kombu-4.00, it's only in the version below 4.00......

And you will just get an error: 'no module named django'. In fact you can hardly find that it's noting wrong with your path of django, your enviroment and so on.

Rolling back the version of kombu to 3.X is complex because a list of package about celery rely on it. So I want to know about which version of django-celery-with-mongodb should be installed.