[obspy-users] (no subject)

Rugija Kerimova rugijak at gmail.com
Fri Apr 12 12:23:44 CEST 2013


Hello,

I am a new user in obspy. I work with OpenSuse 12.1(VM) on Windows7

I cannot read filename.sac
Then I decided to work with the examples and that's what I got

>>> st = read("http://examples.obspy.org/ev0_6.a01.gse2")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/stream.py",
line 242, in read
    st.extend(_read(fh.name, format, headonly, **kwargs).traces)
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/util/decorator.py",
line 152, in wrapped_func
    result = func(filename, *args, **kwargs)
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/stream.py",
line 289, in _read
    headonly=headonly, **kwargs)
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/util/base.py",
line 390, in _readFromPlugin
    'isFormat')
  File
"/usr/local/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py",
line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File
"/usr/local/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py",
line 2309, in load_entry_point
    return ep.load()
  File
"/usr/local/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py",
line 2015, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File
"/usr/local/lib/python2.7/site-packages/obspy.gse2-0.7.0-py2.7-linux-i686.egg/obspy/gse2/core.py",
line 7, in <module>
    from obspy.gse2 import libgse2, libgse1
  File
"/usr/local/lib/python2.7/site-packages/obspy.gse2-0.7.0-py2.7-linux-i686.egg/obspy/gse2/libgse2.py",
line 29, in <module>
    from obspy.core.util import c_file_p, formatScientific
ImportError: cannot import name formatScientific

I tried to take another example from  http://docs.obspy.org/gallery.html
but get such result:


>>> from obspy.core import read
>>> st = read('http://examples.obspy.org/RJOB_061005_072159.ehz.new')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/stream.py",
line 242, in read
    st.extend(_read(fh.name, format, headonly, **kwargs).traces)
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/util/decorator.py",
line 152, in wrapped_func
    result = func(filename, *args, **kwargs)
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/stream.py",
line 289, in _read
    headonly=headonly, **kwargs)
  File
"/usr/local/lib/python2.7/site-packages/obspy-0.8.3_49_g511c8_dirty-py2.7-linux-i686.egg/obspy/core/util/base.py",
line 390, in _readFromPlugin
    'isFormat')
  File
"/usr/local/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py",
line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File
"/usr/local/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py",
line 2309, in load_entry_point
    return ep.load()
  File
"/usr/local/lib/python2.7/site-packages/distribute-0.6.36-py2.7.egg/pkg_resources.py",
line 2015, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File
"/usr/local/lib/python2.7/site-packages/obspy.gse2-0.7.0-py2.7-linux-i686.egg/obspy/gse2/core.py",
line 7, in <module>
    from obspy.gse2 import libgse2, libgse1
  File
"/usr/local/lib/python2.7/site-packages/obspy.gse2-0.7.0-py2.7-linux-i686.egg/obspy/gse2/libgse2.py",
line 29, in <module>
    from obspy.core.util import c_file_p, formatScientific
ImportError: cannot import name formatScientific

Has anyone explained to me the reason for my bad luck. Distribute and
package I just today updated, but the result is still the same.


Regards,
Rugija
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20130412/8f73e8a3/attachment-0001.html>


More information about the obspy-users mailing list