hello there,
after successfully using obspy on my debian gnu/linux test system, i am in the need to install the whole stuff on a FreeBSD box.
since i don't have root privileges on that system and i needed some tools, i've successfully installed a user-level setup pkgsrc environment and managed to get python26 (2.6.6), numpy (1.4.1), and setuptools (0.6c11) installed for my user (i can help writing an howto if you want).
next, i went on installing obspy.core, obspy.mseed, obspy.sac, obspy.gse2 and obspy.imaging with easy_install2.6,
as described in http://svn.geophysik.uni-muenchen.de/trac/obspy/wiki/InstallationInstructions .
all the eggs are under my site-packages folder:
{{{
[me-box ~]$ ls opt/pkg/lib/python2.6/site-packages/ easy-install.pth obspy.sac-0.4.0.dev_r1963-py2.6.egg easy_install.py pkg_resources.py easy_install.pyc pkg_resources.pyc easy_install.pyo pkg_resources.pyo numpy setuptools obspy.core-0.4.0.dev_r1961-py2.6.egg setuptools-0.6c11-py2.6.egg-info obspy.gse2-0.4.0.dev_r1900-py2.6-freebsd-6.2-STABLE-amd64.egg site.py obspy.imaging-0.4.0.dev_r1974-py2.6.egg site.pyc obspy.mseed-0.4.0.dev_r1969-py2.6-freebsd-6.2-STABLE-amd64.egg site.pyo
}}}
(i've tried using both the stable and the devel versions of the packages with the same results)
my script, a simple conversion routine from custom ascii format to mseed (see ticket #144), fails like that:
{{{ [me-box ~/itaca2mseed]$ ./ita2mseed.py test.DAT test.MSEED 1 Trace(s) in Stream: ITDPC.CESV.. N | 1998-01-01T13:35:51.000000Z - 1998-01-01T13:36:23.995000Z | 200.0 Hz, 6600 samples Traceback (most recent call last): File "./ita2mseed.py", line 46, in st.write(of_file, format="MSEED") File "/home/me/opt/pkg/lib/python2.6/site-packages/obspy.core-0.4.0.dev_r1961-py2.6.egg/obspy/core/stream.py", line 973, in write raise TypeError(msg + ', '.join(formats_ep.keys())) TypeError: Format is not supported. Supported Formats: SAC, GSE2, MSEED, SACXY
}}}
the same script was working just fine under my debian test system...
what's wrong?
i'm not really a python guy but it looks like the core package is not able to link in the mseed routines...
thank you, and sorry to bother you again
该提问来源于开源项目:obspy/obspy