> Here is the PYTHONPATH from Eclipse: > /home/yatuga/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev_1.5.9.2010063001/PySrc > /usr/lib/pymodules/python2.6 > /usr/lib/python2.5/site-packages/lxml > /usr/lib/python2.6/lib-old > /usr/lib/python2.6/lib-dynload > /home/yatuga/work/Shop/Invoices/src > /usr/lib/python2.6/plat-linux2 > /usr/lib/python2.6/dist-packages/lxml > /usr/lib/python2.6/lib-tk > /usr/share/pyshared > /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/local/lib/python2.6/dist-packages > > And here from command shell: > /home/yatuga/~/PythonTest > /usr/lib/python2.6 > /usr/lib/python2.6/plat-linux2 > /usr/lib/python2.6/lib-tk > /usr/lib/python2.6/lib-old > /usr/lib/python2.6/lib-dynload > /usr/lib/python2.6/dist-packages > /usr/lib/python2.6/dist-packages/PIL > /usr/lib/python2.6/dist-packages/gst-0.10 > /usr/lib/pymodules/python2.6 > /usr/lib/pymodules/python2.6/gtk-2.0 > /usr/local/lib/python2.6/dist-packages > > I also tried to add /usr/lib/python2.6/dist-packages/lxml to the > PYTHONPATH, but with no success. It still follows links to pyshared and > etree module is still unknown. > > What I want: > 1) find some clean solution for this problem, if possible > 2) post bug report to the right place Eclipse or PyDev or python-lxml > deb package creator >
Hi there, it seems the problem is in the pythonpath configuration... It should not be different from the pythonpath in the command shell... you probably don't want to add entries for /usr/lib/python2.6/dist-packages/lxml and /usr/lib/python2.5/site-packages/lxml (because if you want to import lxml, the folder above should be in the pythonpath, in this case, only /usr/lib/python2.6/dist-packages. Also, you also probably should remove the entry to /usr/share/pyshared as it's already linked through /usr/lib/python2.6/dist-packages. Cheers, Fabio ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users