[Answered ]-PyDev run configuration: ImportError: No module named

2👍

I had a similar problem with eclipse on linux. I solved it defining the ‘Django settings module’ in the ‘PyDev – Django’ chapter of the project properties.

In your case it should be ‘django-app-folder.config-folder.settings’.

Hope it helps.

0👍

There something strange in your PYTHONPATH: you have a django_filters_xxx.egg entry and a django_filters_xxx.egg/filters entry, which seems odd… is the .egg a folder or a zip in your case?

Does it work in the command line? If it works in the command line, you can try adding:

import sys
print('\n'.join(sorted(sys.path)))

on the command line and comparing with the one in PyDev to check if there’s something wrong there.

Another common issue is that sometimes you are shadowing the import with a module with the same name in your project.

Leave a comment