#780 Different PYTHONPATH in debug and run launches

1.3.9
closed-fixed
debugger (210)
5
2008-09-15
2008-08-27
No

I try to launch Django application (unit tests) in debug mode, but it doesn't work. Looks like PYTHONPATH for Run and Debug launches differ which leads to a import error.

Debug:

['/home/moo', '/home/moo/.eclipse/org.eclipse.sdk.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.18/pysrc', '/usr/lib/python2.5/site-packages/iso8601-0.1.4-py2.5.egg', '/usr/lib/python2.5/site-packages/geopy-0.93-py2.5.egg', '/home/moo/workspace/lifematta/dependencies/django-trunk', ...

Run:

['/home/moo/workspace/lifematta/server/webbridge', '/usr/lib/python2.5/site-packages/iso8601-0.1.4-py2.5.egg', '/usr/lib/python2.5/site-packages/geopy-0.93-py2.5.egg', '/home/moo/workspace/lifematta/dependencies/django-trunk', '/home/moo/workspace/lifematta/blogall_generic', '/home/moo/workspace/lifematta/server', ...

/home/moo/workspace/lifematta/server/webbridge is picked up automatically in Run (it's the folder of the main .py module), but not in debug.

Workaround: Manually add the path of your main.py to project PYTHONPATH settings.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2008-09-15

    Fixed for 1.3.21

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-09-15
    • status: open --> closed-fixed