python - PyDev run configuration: ImportError: No module named -
i using liclipse on osx , trying run django application using eclipse run configuration (this manages virtualenv?). app not of creation works in production assume environment needs corrected. app structured as:
pydev project folder --manage.py --requirements.txt --django-app-folder -----config-folder --------__ini__.py --------settings.py --------evniroments.py --------urls.py --------wsgi.py -----app-folder --------__ini__.py --------lots of other stuff
when try run application fails import module:
this appears common, @ least there several other questions comparable , many dated ones such as: eclipse + pydev importerror , importerror: cannot import name... not answer question of how configure eclipse run correctly pydev?
i have followed docs @ pydev , guidance in referenced links such removing interpreter settings pydev , adding , "check if interpreters synchronized environment".
here pythonpath run config using:
and interpreter settings under pydev preferences - have tried both egg , folder each on own:
there strange in pythonpath: have django_filters_xxx.egg entry , django_filters_xxx.egg/filters entry, seems odd... .egg folder or zip in case?
does work in command line? if works in command line, can try adding:
import sys print('\n'.join(sorted(sys.path)))
on command line , comparing 1 in pydev check if there's wrong there.
another common issue shadowing import module same name in project.
Comments
Post a Comment