[obspy-users] [EXTERNAL] Re: problem with libmseed.so

Schramm, Kimberly kschram at sandia.gov
Thu Sep 25 22:12:44 CEST 2014


Tobias, 

I have messed around with path variables and when I list path info in
python, I can see the obspy listed.  However, I now get the error message
below when I try from obspy.core import read.  At least I¹ve changed
things?  I also switched to the more recent version of obspy to see if
that would magically fix things. . .  It never is that easy, is it.

>>> import sys
>>> sys.path
['', 
'/ascldap/users/kschram/.local/lib/python2.7/site-packages/suds-0.4-py2.7.e
gg', 
'/ascldap/users/kschram/.local/lib/python2.7/site-packages/pisces_db-0.2-py
2.7-linux-x86_64.egg',
'/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg',
'/projects/canopy/Canopy_64bit/User/bin/python',
'/home/kschram/.local/bin',
'/ascldap/users/kschram/.local/lib/python2.7/site-packages',
'/home/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2.7-linux-x
86_64.egg/obspy/lib',
'/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg/obspy/lib',
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python27.
zip', 
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7
', 
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7
/plat-linux2', 
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7
/lib-tk', 
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7
/lib-old', 
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7
/lib-dynload', 
'/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages',
'/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/PIL',
'/projects/canopy/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7
/site-packages', '/projects/canopy/Canopy_64bit/User/bin/python',
'/home/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2.7-linux-x
86_64.egg/obspy/lib']
>>> from obspy.core import read
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg/obspy/__init__.py", line 43, in <module>
    read.__doc__ % make_format_plugin_table("waveform", "read",
numspaces=4)
  File 
"/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg/obspy/core/util/base.py", line 391, in
make_format_plugin_table
    "obspy.plugin.%s.%s" % (group, name), method)
  File 
"/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resourc
es.py", line 345, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File 
"/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resourc
es.py", line 2381, in load_entry_point
    return ep.load()
  File 
"/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resourc
es.py", line 2087, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File 
"/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg/obspy/mseed/core.py", line 6, in <module>
    from headers import clibmseed, ENCODINGS, HPTMODULUS, SAMPLETYPE,
DATATYPES, \
  File 
"/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg/obspy/mseed/headers.py", line 36, in
<module>
    raise ImportError(msg)
ImportError: Could not load shared library for obspy.mseed.

 /ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.0.0_tar_
zipball-py2.7-linux-x86_64.egg/obspy/mseed/../lib/libmseed.so: cannot open
shared object file: No such file or directory




Kimberly Schramm
Sandia Staffing Alliance, LLC
Under contract to Sandia National Labs
Dept 6913, Geophysics and Atmospheric Science
(505)284-9739
kschram at sandia.gov




On 9/25/14, 3:32 AM, "Tobias Megies" <megies at geophysik.uni-muenchen.de>
wrote:

>Hi Kimberley,
>
>I can't say much about Redhat/Canopy but.. you were talking about an
>"obspy_lib" directory (note the underscore)? The libraries are stored in
>".../obspy/lib/" so maybe during the installation the directory got a
>wrong name somehow? Can you make sure the directory with the libraries
>is at the location the error message indicates?
>
>ls -l
>/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2.
>7-linux-x86_64.egg/obspy/mseed/../lib/
>
>On a side note.. the name "libmseed_Linux_64bit_py27.so" is correct,
>"libmseed.so" is only searched as a fallback when the library is not
>found under the usual name.
>
>hope it helps,
>Tobias
>
>On 09/24/2014 11:48 PM, Schramm, Kimberly wrote:
>> Hello! 
>> 
>> I am trying to install obspy on a redhat linux using enthought canopy
>> v2.7.  When I type from obspy import read at the python prompt I get the
>> following error included below.  There is no libmseed.so in obspy_lib
>> directory.  There is a libmseed_Linux_64bit_py27.so but if I create a
>> link to that it also doesn¹t work.  I looked at the log file from
>> running python setup.py install ‹user (I don¹t have sudo on this
>> machine) and it appears that everything ran ok.  A few fortran warnings,
>> but nothing fatal.  Where did I go wrong?
>> 
>> Thanks for any help or advice,
>> kim
>> 
>> 
>>-------------------------------------------------------------------------
>>--
>> ImportError                               Traceback (most recent call
>>last)
>> <ipython-input-2-511db6947ad7> in <module>()
>> ----> 1 from obspy.core import *
>> 
>> 
>>/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2
>>.7-linux-x86_64.egg/obspy/__init__.py
>> in <module>()
>>      41 from obspy.core.util.base import make_format_plugin_table
>>      42 read.__doc__ = \
>> ---> 43     read.__doc__ % make_format_plugin_table("waveform", "read",
>> numspaces=4)
>>      44 Stream.write.im_func.func_doc = \
>>      45     Stream.write.__doc__ % make_format_plugin_table("waveform",
>> "write",
>> 
>> 
>>/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2
>>.7-linux-x86_64.egg/obspy/core/util/base.pyc
>> in make_format_plugin_table(group, method, numspaces,
>>unindent_first_line)
>>     389         module_short = ":mod:`%s`" %
>> ".".join(ep.module_name.split(".")[:2])
>>     390         func = load_entry_point(ep.dist.key,
>> --> 391                                 "obspy.plugin.%s.%s" % (group,
>> name), method)
>>     392         func_str = ':func:`%s`' % ".".join((ep.module_name,
>> func.func_name))
>>     393         mod_list.append((name, module_short, func_str))
>> 
>> 
>>/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resour
>>ces.py
>> in load_entry_point(dist, group, name)
>>     343 def load_entry_point(dist, group, name):
>>     344     """Return `name` entry point of `group` for `dist` or raise
>> ImportError"""
>> --> 345     return get_distribution(dist).load_entry_point(group, name)
>>     346
>>     347 def get_entry_map(dist, group=None):
>> 
>> 
>>/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resour
>>ces.py
>> in load_entry_point(self, group, name)
>>    2379         if ep is None:
>>    2380             raise ImportError("Entry point %r not found" %
>> ((group,name),))
>> -> 2381         return ep.load()
>>    2382
>>    2383     def get_entry_map(self, group=None):
>> 
>> 
>>/projects/canopy/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resour
>>ces.py
>> in load(self, require, env, installer)
>>    2085     def load(self, require=True, env=None, installer=None):
>>    2086         if require: self.require(env, installer)
>> -> 2087         entry = __import__(self.module_name,
>> globals(),globals(), ['__name__'])
>>    2088         for attr in self.attrs:
>>    2089             try:
>> 
>> 
>>/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2
>>.7-linux-x86_64.egg/obspy/mseed/core.py
>> in <module>()
>>       4 """
>>       5
>> ----> 6 from headers import clibmseed, ENCODINGS, HPTMODULUS,
>> SAMPLETYPE, DATATYPES, \
>>       7     VALID_RECORD_LENGTHS, HPTERROR, SelectTime, Selections,
>> blkt_1001_s, \
>>       8     VALID_CONTROL_HEADERS, SEED_CONTROL_HEADERS
>> 
>> 
>>/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2
>>.7-linux-x86_64.egg/obspy/mseed/headers.py
>> in <module>()
>>      36 else:
>>      37     msg = 'Could not load shared library for obspy.mseed.\n\n
>> %s' % (e)
>> ---> 38     raise ImportError(msg)
>>      39
>>      40
>> 
>> ImportError: Could not load shared library for obspy.mseed.
>> 
>>  
>>/ascldap/users/kschram/.local/lib/python2.7/site-packages/obspy-0.9.0-py2
>>.7-linux-x86_64.egg/obspy/mseed/../lib/libmseed.so:
>> cannot open shared object file: No such file or directory
>> 
>> 
>> 
>> Kimberly Schramm
>> Sandia Staffing Alliance, LLC
>> Under contract to Sandia National Labs
>> Dept 6913, Geophysics and Atmospheric Science
>> (505)284-9739
>> kschram at sandia.gov
>> 
>> 
>> _______________________________________________
>> obspy-users mailing list
>> obspy-users at lists.swapbytes.de
>> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>> 
>
>-- 
>Dipl.-Geophys. Tobias Megies
>
>Geophysikalisches Observatorium
>Ludwigshöhe 8
>82256 Fürstenfeldbruck
>
>Ludwig-Maximilians-Universität
>Department für Geo- und Umweltwissenschaften
>Sektion Geophysik
>Theresienstrasse 41/IV
>80333 München
>
>Tel: +49 (0) 89 2180-73981
>     +49 (0) 89 2180-4326
>Mail: tobias.megies at geophysik.uni-muenchen.de
>_______________________________________________
>obspy-users mailing list
>obspy-users at lists.swapbytes.de
>http://lists.swapbytes.de/mailman/listinfo/obspy-users



More information about the obspy-users mailing list