Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 
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__
/usr/lib/pymodules/python2.7/dbus/__init__.pyc
>>> 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. 
 
References

 

 

Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.