[obspy-users] Problems with lxml (local install)
Martin.Gal at utas.edu.au
Sun Apr 20 15:28:54 CEST 2014
Hi Obspy team, I want to run Obspy on a machine where I do not have root access and the server is behind a firewall. I am quite limited with the install options and I used easy_install as pip is broken with some SSL error. I can compile all dependencies but when I try to import the obspy package I get the following error: Python 2.7.5 (default, Apr 17 2014, 09:21:05) [GCC 4.1.2 20070115 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import lxml >>> import obspy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/u/mgal/local/lib/python2.7/site-packages/obspy-0.9.0-py2.7-linux-x86_64.egg/obspy/__init__.py", line 38, in <module> from obspy.station import read_inventory # NOQA File "/u/mgal/local/lib/python2.7/site-packages/obspy-0.9.0-py2.7-linux-x86_64.egg/obspy/station/__init__.py", line 8, in <module> from obspy.station.inventory import Inventory, read_inventory File "/u/mgal/local/lib/python2.7/site-packages/obspy-0.9.0-py2.7-linux-x86_64.egg/obspy/station/inventory.py", line 17, in <module> from obspy.station.stationxml import SOFTWARE_MODULE, SOFTWARE_URI File "/u/mgal/local/lib/python2.7/site-packages/obspy-0.9.0-py2.7-linux-x86_64.egg/obspy/station/stationxml.py", line 14, in <module> from lxml import etree ImportError: /u/mgal/local/lib/python2.7/site-packages/lxml-3.3.5-py2.7-linux-x86_64.egg/lxml/etree.so: undefined symbol: clock_gettime I tracked the error down to be a problem with the recent gcc compiler. Apparently someone wrote a fix for it (https://pypi.python.org/pypi/z3c.recipe.staticlxml). With my unix knowledge I am not able to perform this fix as the documentation is not sufficient for me. Is there any other way I could solve this issue? I am only using the obspy.core.read function maybe I can install that separately without the need of lxml? Than you very much, best regards, Martin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the obspy-users