Re: [Pydev-code] inconsistent pythonpaths
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2011-04-28 14:08:03
|
I believe you installed things with easy-install, right? It seems that the easy-install.pth adds those for you regardless of what PyDev will pass as the PYTHONPATH (that's something PyDev can't control). A better way for you might be using virtualenv (http://pypi.python.org/pypi/virtualenv), where each interpreter may be configured just with the dependencies you want (and then you can add each of those interpreters as a different interpreter in PyDev -- i.e.: http://pydev.blogspot.com/2010/04/pydev-and-virtualenv.html). Cheers, Fabio On Wed, Apr 27, 2011 at 5:32 PM, j brandon keith <jbr...@gm...> wrote: > Hi, I'm wondering if this is a bug...I've been using pydev for many years > and have consistently had problems with the python path...for example, I > have a script I'm running which pydev says is run with the following > pythonpath: > /home/jbk/helios/eclipse/plugins/org.python.pydev_1.6.5.2011020317/PySrc/pydev_sitecustomize:/home/jbk/workspace/parnasis/src:/usr/lib/pymodules/python2.6:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/PyCifRW-3.1.4p01-py2.6-linux-x86_64.egg:/usr/local/lib/python2.6/dist-packages/matter-0.8_r983_20110415-py2.6.egg > Note I've wired the project with a source > directory /home/jbk/workspace/parnasis/src. However, at the top of the > script i import sys and print sys.path: > ['/home/jbk/workspace/parnasis/useCases/mdDos/ysz/ysz12', > '/usr/local/lib/python2.6/dist-packages/dj > ango_evolution-0.6.3alpha0-py2.6.egg', > '/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.eg > g', '/usr/local/lib/python2.6/dist-packages/Jinja2-2.5.5-py2.6.egg', > '/usr/local/lib/python2.6/dist- > packages/matter-0.8_20110426-py2.6.egg', > '/usr/local/lib/python2.6/dist-packages/parnasis-0.5-py2.6. > egg', '/usr/local/lib/python2.6/dist-packages/plotlib-0.3-py2.6.egg', > '/home/jbk/workspace/parnasis/ > src', '/usr/lib/pymodules/python2.6', > '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6', > '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', > '/usr/lib/python2.6/dist > -packages/gst-0.10', '/usr/lib/python2.6/dist-packages/gtk-2.0', > '/usr/lib/python2.6/dist-packages/w > x-2.8-gtk2-unicode', '/usr/lib/python2.6/lib-dynload', > '/usr/lib/python2.6/lib-old', '/usr/lib/pytho > n2.6/lib-tk', '/usr/lib/python2.6/plat-linux2', > '/usr/local/lib/python2.6/dist-packages', '/usr/loca > l/lib/python2.6/dist-packages/PyCifRW-3.1.4p01-py2.6-linux-x86_64.egg', > '/usr/local/lib/python2.6/di > st-packages/matter-0.8_r983_20110415-py2.6.egg'] > Why are they different? In this one, we see the first entry is the > directory where the script is located, which is logical....next I would > expect to see the rest of the entries above..unfortunately I see a lot of > eggs, some of which conflict with my source > directory '/home/jbk/workspace/parnasis/src' which i think should be the > second or third entry...any explanations? > brandon > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |