That's an uggly message in Eclipse when you use Pydev. In particular when the Python code runs successfull even there is this message. It took me quite a while to figure out how to get rid of this annoying message and to get context assist for the modules.That's the way I solved the issue:
The reason is that  PYTHONPATH is not set correct in Eclipse. So you have to add the directory the moduel is installed on the disk. In order to find the path open a python interpreter. I use the dbus module in my following example:
framp@obelix ~ $ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> print dbus.__file__
>>> quit()
Now I know the dbus module is used from /usr/lib/pymodules/python2.7/dbus and can add this directory to my PYTHONPATH in Eclipse.  Unfortunately that's not enough. In addition the partent directory has to be added, in my example /usr/lib/pymodules/python2.7/dbus.
My environment: Python 2.7.1, Eclipse 3.5.2 and Pydev 2.2.4. 

Kommentar schreiben


Spam Kommentare werden gelöscht und nicht veröffentlicht. Die Überprüfung wird manuell vorgenommen und deshalb dauert es i.d.R. zwischen ein paar Stunden bis zu einem Tag bis ein Kommentar veröffentlicht wird.