#1018 Strange code-assist with lib version

1.4.8
closed-works-for-me
5
2009-11-22
2009-11-21
No

When adding an (zipped) egg-file to PYTHONPATH in the project properties, the new modules and classes are recognized, though, but content assist let me only import something like this

from Shapely-1.0.14-py2.5.shapely import geometry
from jsbridge-2.3.4.jsbridge import BackChannel

Obviously, that form is not eligible. I tried to use a symlink `shapely' pointing on that egg, but the behaviour doesn't change.

Since attaching an example lib fails (complaining > 256k or so) here's the site f'or downloading it:

http://pypi.python.org/pypi/jsbridge/2.3.4

Thanks

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-11-21

    I've just got the jsbridge-2.3.4-py2.6.egg and adding that .zip to the pythonpath works...

    So, it seems it some sort of misconfiguration... Can you give more details:

    1. What exactly is added to your pythonpath in pydev?
    2. What is the full location of the egg file?
    3. Are you using it as a zip?
    4. Do you have some symlink in that process?

    Cheers,

    Fabio

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-11-21
    • status: open --> pending
     
  • Henning Bredel

    Henning Bredel - 2009-11-21
    • status: pending --> open
     
  • Henning Bredel

    Henning Bredel - 2009-11-21

    I tried to answer all your questions and had to deal with some strange behaviour of pydev. It seemes that pydev does not recognize my changes, until I make a whole project clean.

    After I did a clean, the 3rd party lib was recognized correctly and I could import it without content assist including version number.

    I cannot recreate the situation which caused the CA including version number during import. Could have been misconfiguration, as you said, but led to some confusion, cause changes didn't take effect. Probably you could have a look at this issue?!

    Thanks for your help

    Henning

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-11-22

    Actually, that's expected... Pydev doesn't really analyze the files unless you edit them or make a refresh (because there's no dependency analysis -- as in python it's very difficult to get it right -- and the memory requirements would grow too much for that).

    Cheers,

    Fabio

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-11-22
    • status: open --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks