weixin_39747577 2020-11-20 20:17
浏览 0

obspy on FreeBSD 6.2 with pkgsrc and easy_install

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

  • 写回答

16条回答 默认 最新

  • weixin_39747577 2020-11-20 20:17
    关注

    [russo.ingv.it] PS

    here's my sys.path (looks okay to me)

    {{{ Python 2.6.6 (r266:84292, Oct 20 2010, 15:54:45) [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6 Type "help", "copyright", "credits" or "license" for more information.

    import sys sys.path ['', '/home/me/opt/pkg/lib/python2.6/site-packages/obspy.core-0.4.0.dev_r1961-py2.6.egg', '/home/me/opt/pkg/lib/python2.6/site-packages/obspy.mseed-0.4.0.dev_r1969-py2.6-freebsd-6.2-STABLE-amd64.egg', '/home/me/opt/pkg/lib/python2.6/site-packages/obspy.sac-0.4.0.dev_r1963-py2.6.egg', '/home/me/opt/pkg/lib/python2.6/site-packages/obspy.gse2-0.4.0.dev_r1900-py2.6-freebsd-6.2-STABLE-amd64.egg', '/home/me/opt/pkg/lib/python2.6/site-packages/obspy.imaging-0.4.0.dev_r1974-py2.6.egg', '/home/me/opt/pkg/lib/python26.zip', '/home/me/opt/pkg/lib/python2.6', '/home/me/opt/pkg/lib/python2.6/plat-freebsd6', '/home/me/opt/pkg/lib/python2.6/lib-tk', '/home/me/opt/pkg/lib/python2.6/lib-old', '/home/me/opt/pkg/lib/python2.6/lib-dynload', '/home/me/opt/pkg/lib/python2.6/site-packages'] }}}

    评论

报告相同问题?