Strange code-assist with lib version
Brought to you by:
fabioz
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
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
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
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