Hi, having difficult installing obspy on rocks cluster.
I’ve performed a multi-user installation of Canopy on a rocks cluster (http://blog.enthought.com/python/installing-and-managing-a-central-python-install-with-enthought-canopy-v1-1/) and all users now have the correct python environment on their path.
easy_install does not work at all (and not only for obspy), it fails with:
[root@esc python]# ls
canopy-1.3.0-full-rh5-64.sh obspy obspy.zip
[root@esc python]# which easy_install
/usr/local/Canopy_64bit/User/bin/easy_install
[root@esc python]# easy_install -U obspy.zip
Traceback (most recent call last):
File “/usr/local/Canopy_64bit/User/bin/easy_install”, line 9, in
load_entry_point(‘distribute’, ‘console_scripts’, ‘easy_install’)()
File “/usr/local/Canopy_64bit/User/lib/python2.7/site-packages/setuptools-2.2-py2.7.egg/pkg_resources.py”, line 353, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/local/Canopy_64bit/User/lib/python2.7/site-packages/setuptools-2.2-py2.7.egg/pkg_resources.py”, line 2320, in load_entry_point
raise ImportError(“Entry point %r not found” % ((group,name),))
ImportError: Entry point (‘console_scripts’, ‘easy_install’) not found
…so I’m trying to install from source:
[root@esc ~]# cd /share/apps/src/python/obspy
[root@esc obspy]# ls
CHANGELOG.txt debian misc README.md
CONTRIBUTING.md MANIFEST.in obspy setup.py
[root@esc obspy]# which python
/usr/local/Canopy_64bit/User/bin/python
[root@esc obspy]# su shahar
[shahar@esc obspy]$ which python
~/Enthought/Canopy_64bit/User/bin/python
[shahar@esc obspy]$ exit
exit
[root@esc obspy]# python setup.py develop -N -U --verbose
running develop
running build_scripts
running egg_info
running build_src
build_src
building extension “libgse2_Linux_64bit_py27” sources
building extension “libmseed_Linux_64bit_py27” sources
building extension “libsegy_Linux_64bit_py27” sources
building extension “libsignal_Linux_64bit_py27” sources
building extension “libevresp_Linux_64bit_py27” sources
building extension “libtau_Linux_64bit_py27” sources
f2py options: []
f2py: build/libtau_Linux_64bit_py27.pyf
Reading fortran codes…
Reading file ‘build/libtau_Linux_64bit_py27.pyf’ (format:free)
Post-processing…
Block: libtau_Linux_64bit_py27
Block: ttimes
Post-processing (stage 2)…
Building modules…
Building module “libtau_Linux_64bit_py27”…
Constructing wrapper function “ttimes”…
phcd,tt,toang,dtdd,dtdh,dddp = ttimes(deltain,zs,modnam)
Wrote C/API module “libtau_Linux_64bit_py27” to file “build/libtau_Linux_64bit_py27module.c”
adding ‘build/src.linux-x86_64-2.7/fortranobject.c’ to sources.
adding ‘build/src.linux-x86_64-2.7’ to include_dirs.
creating build/src.linux-x86_64-2.7
copying /usr/local/Canopy_64bit/User/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> build/src.linux-x86_64-2.7
copying /usr/local/Canopy_64bit/User/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> build/src.linux-x86_64-2.7
building data_files sources
build_src: building npy-pkg config files
creating obspy.egg-info
writing requirements to obspy.egg-info/requires.txt
writing obspy.egg-info/PKG-INFO
writing namespace_packages to obspy.egg-info/namespace_packages.txt
writing top-level names to obspy.egg-info/top_level.txt
writing dependency_links to obspy.egg-info/dependency_links.txt
writing entry points to obspy.egg-info/entry_points.txt
writing manifest file ‘obspy.egg-info/SOURCES.txt’
reading manifest file ‘obspy.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
no previously-included directories found matching ‘doc’
writing manifest file ‘obspy.egg-info/SOURCES.txt’
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building ‘libgse2_Linux_64bit_py27’ extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -fPIC
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/share
creating build/temp.linux-x86_64-2.7/share/apps
creating build/temp.linux-x86_64-2.7/share/apps/src
creating build/temp.linux-x86_64-2.7/share/apps/src/python
creating build/temp.linux-x86_64-2.7/share/apps/src/python/obspy
creating build/temp.linux-x86_64-2.7/share/apps/src/python/obspy/obspy
creating build/temp.linux-x86_64-2.7/share/apps/src/python/obspy/obspy/gse2
creating build/temp.linux-x86_64-2.7/share/apps/src/python/obspy/obspy/gse2/src
creating build/temp.linux-x86_64-2.7/share/apps/src/python/obspy/obspy/gse2/src/GSE_UTI
compile options: ‘-I/usr/local/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/include -I/root/Canopy/appdata/canopy-1.3.0.1715.rh5-x86_64/include/python2.7 -c’
gcc: /share/apps/src/python/obspy/obspy/gse2/src/GSE_UTI/gse_functions.c
gcc -pthread -shared -Wl,-rpath,’$ORIGIN/…/lib’ -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib build/temp.linux-x86_64-2.7/share/apps/src/python/obspy/obspy/gse2/src/GSE_UTI/gse_functions.o -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib -lpython2.7 -o obspy/lib/libgse2_Linux_64bit_py27.so
/usr/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
/usr/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
error: Command “gcc -pthread -shared -Wl,-rpath,’$ORIGIN/…/lib’ -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib build/temp.linux-x86_64-2.7/share/apps/src/python/obspy/obspy/gse2/src/GSE_UTI/gse_functions.o -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib -lpython2.7 -o obspy/lib/libgse2_Linux_64bit_py27.so” failed with exit status 1
Has anyone encountered this issue or has any insight as to why I’m failing at this?
Thanks,
Shahar