Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse, pydev, easy_install-ed eggs problem

Tags:

python

eclipse

I have a problem with eclipse and easy_install'ed packages into virtualenv. If I have

from sqlalchemy.ext.serializer import loads 

import statement and put mouse cursor on "load" I get message

loads Found at: __module_not_in_the_pythonpath__ 

and it repeats with any module on PYTHONPATH while I have not manually add it to the Project properties -> PyDev - PYTHONPATH -> External Libraries :/ Like ~/Work/Environments/Default/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg or any other egg pkg dir... ~/Work/Environments/Default/lib/python2.6/site-packages/ is added but eclipse can't see any eggs inside it!

Python interpreter is set to ~/Work/Environments/Default/bin/python2.6

I use eclipse-SDK-3.7M5-linux-gtk with latest PyDev.

Can someone help me with that?

like image 420
sector119 Avatar asked Mar 03 '11 13:03

sector119


People also ask

Why PyDev is not showing in Eclipse?

If you have Eclipse installed, but it does not have the PyDev plug-in installed for whatever reason, PyDev is missing from the list of Eclipse preferences. Follow the instructions in the PyDev plug-in manually. Select the latest version of Python 3 installed on your computer, and press .

Which Eclipse for PyDev?

PyDev requires Java 11 and Eclipse 4.6 (Neon) in order to run and only supports Python 2.6 onwards.

How to remove PyDev from Eclipse?

To uninstall you should either go on and remove the org. python. pydev* from eclipse/plugins and eclipse/features or you can go to help > software updates > manage configuration, choose the PyDev plugin and disable it (after that, to completely remove it, you must restart Eclipse and only then select it for uninstall).


1 Answers

If you add a package after configuring the interpreter in Eclipse, you need to configure the interpreter again

See PyDev's manual:

If you add something to your python installation, you need to either add it manually as a 'new folder' in the System PYTHONPATH (if it's still not under a folder in the PYTHONPATH) or (recommended) remove your interpreter and add it again, then, press apply.

Note that adding the libraries in the project settings is not the recommended approach - it should be used only for some explicit additional library that is not in the standard PYTHONPATH but is used in a specific application.

like image 87
rob Avatar answered Oct 27 '22 20:10

rob