Menu

#1425 Auto-configured PYTHONPATH uses incorrect case on Windows

pending
Editor (491)
5
2011-11-28
2011-11-18
CamJackson
No

This is using PyDev 2.2.1 on Windows XP.

When clicking the Auto Configure button for the Python interpreter, the last item added to the System PYTHONPATH is C:\Python27\lib\site-packages. It should be C:\Python27\Lib\site-packages- note the L in Lib is capitalised.

In trying to use SQLAlchemy, I had previously been getting lots of Import Errors in the IDE, despite everything going fine when I actually ran the script. Fixing the Lib\site-packages item and restarting Eclipse (File->Restart) fixed this for me.

Discussion

  • CamJackson

    CamJackson - 2011-11-18

    I should note that Jython does not do this- the case is correct.

     
  • Sorin Sbarnea (old)

    I confirm the bug, also this should have bigger priority.

    The case is *incorrect*, all versions of Python do have the "Lib" directory, not "lib".

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-11-28
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-11-28

    Actually, in windows, that shouldn't be an issue (even with the lowercase 'L' it should work).

    The actual issue seems to be a cache issue. Although I've experienced it once here I still can't reproduce it reliably, so, it's still not fixed...

    Note that just adding/removing the interpreter and restarting Eclipse (as you did) makes all things 'right' again.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.