[PyWrapper-devel] FW: debian
Status: Alpha
Brought to you by:
jatorre
From: <m.d...@BG...> - 2006-11-23 14:13:06
|
-----Original Message----- From: D=F6ring, Markus=20 Sent: Donnerstag, 23. November 2006 15:12 To: 'Rouard, Mathieu (INIBAP)' Cc: Skofic, Milko (Bioversity) Subject: RE: debian Mathieu, If you use the installer.sh script it compiles its own local python = interpreter in tools/python. This interpreter only uses its own = libraries. If you want ot use the "system wide" libraries you might need to use the = system wide interpreter in /usr/local or wherever it is. In that case = you should NOT use the pywrapper installer.sh scipt but install the 4 = required libraries manually. It should be on the wiki briefly: = http://trac.pywrapper.org/pywrapper/wiki/InstallationGuide#BInstallIntoSy= stem If you need any more advice please let me know. Out network is being = shut own in a few minutes so I might no be avilable til Monday! Markus > -----Original Message----- > From: Rouard, Mathieu (INIBAP) [mailto:M.R...@CG...] > Sent: Donnerstag, 23. November 2006 14:51 > To: D=F6ring, Markus > Cc: Skofic, Milko (Bioversity) > Subject: RE: debian >=20 >=20 > Hi Marcus, > =20 > Thanks for your answer. As I explained to Milko, apt-get > install python2.4-lxml works fine on my debian server.=20 > However, when I try starting the tapir webserver, lxml is not=20 > detected and some errors occur. I think the script looks for=20 > these libraries locally whereas it is globally installed. > =20 > So I copied the files as below >=20 > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1=20 > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml=20 > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info=20 > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info/dependency_links.txt > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info/native_libs.txt > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info/not-zip-safe > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info/PKG-INFO > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info/SOURCES.txt > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml.egg-info/top_level.txt > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/_elementpath.py > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/_elementpath.pyc > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/etree.so=20 > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/__init__.py > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/__init__.pyc > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/objectify.so > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/sax.py=20 > /home/html/www_tapir/pywrapper/tools/python/lib/python2.4/site > -packages/lxml1.1.1/lxml/sax.pyc >=20 > I still have the same problem. Could you tell me which path > the script expects?=20 >=20 > Warning! lxml is not yet installed (XSLT library). Some > operations incl all BioMoby services won't work Traceback=20 > (most recent call last): > File "../webapp/start_server.py", line 60, in ? > import cherrypy, biocase.configuration, root, pywrapper > File "/home/html/www_tapir/pywrapper/webapp/root.py", line 17, in ? > import page, biocase.configuration > File "/home/html/www_tapir/pywrapper/webapp/page.py", line 4, in ? > import biocase.pywrapper > File=20 > "/home/html/www_tapir/pywrapper/lib/biocase/pywrapper/__init__ > .py", line 48, in ? > from biocase.pywrapper.pywrappercgi import PyWrapper,=20 > UnknownProtocolError > File=20 > "/home/html/www_tapir/pywrapper/lib/biocase/pywrapper/pywrappe > rcgi.py", line 23, in ? > from biocase.pywrapper.protocols.BioMOBY.protocol import=20 > BioMOBYProtocol > File=20 > "/home/html/www_tapir/pywrapper/lib/biocase/pywrapper/protocol > s/BioMOBY/protocol.py", line 17, in ? > from biocase.pywrapper.protocols.BioMOBY.request =20 > import RequestClass > File=20 > "/home/html/www_tapir/pywrapper/lib/biocase/pywrapper/protocol > s/BioMOBY/request.py", line 11, in ? > from biocase.tools.xmllibtools =20 > import transformXML > File=20 > "/home/html/www_tapir/pywrapper/lib/biocase/tools/xmllibtools. > py", line 13, in ? > from lxml import etree > ImportError: No module named lxml > Error in atexit._run_exitfuncs: > Traceback (most recent call last): > File=20 > "/home/html/www_tapir/pywrapper/tools/python/lib/python2.4/ate > xit.py", line 24, in _run_exitfuncs > func(*targs, **kargs) > File=20 > "/home/html/www_tapir/pywrapper/tools/python/lib/python2.4/log > ging/__init__.py", line 1333, in shutdown > h.close() > File=20 > "/home/html/www_tapir/pywrapper/tools/python/lib/python2.4/log > ging/__init__.py", line 674, in close > del _handlers[self] > KeyError: <logging.StreamHandler instance at 0xb78e64cc> > Error in sys.exitfunc: > Traceback (most recent call last): > File=20 > "/home/html/www_tapir/pywrapper/tools/python/lib/python2.4/ate > xit.py", line 24, in _run_exitfuncs > func(*targs, **kargs) > File=20 > "/home/html/www_tapir/pywrapper/tools/python/lib/python2.4/log > ging/__init__.py", line 1333, in shutdown > h.close() > File=20 > "/home/html/www_tapir/pywrapper/tools/python/lib/python2.4/log > ging/__init__.py", line 674, in close > del _handlers[self] > KeyError: <logging.StreamHandler instance at 0xb78e64cc> > =20 > Thanks > Mathieu > =20 > Begin forwarded message: >=20 >=20 > From: "D=F6ring, Markus" <m.d...@BG...> > Date: November 23, 2006 11:50:42 GMT+01:00 > To: "Milko A. Skofic (IPGRI)" <m.s...@cg...> > Cc: "Javier privat" <ja...@gm...> > Subject: debian >=20 > Hey, > The debian problem is because lxml doesnt install out > of the box on debian: >=20 = http://trac.pywrapper.org/pywrapper/wiki/InstallerTroubleshooting#Debian Not sure if we can fix that easily. We might need to do a manual install into the system using apt-get... Markus |