[SciPy-user] Newbie help for installing pysamplerate
Joseph Anderson
J.Anderson at hull.ac.uk
Sat Mar 1 10:12:22 EST 2008
Hello All,
Most likely this is really just a question for David Cournapeau. . .
Am having a bit of trouble apparently resulting from being a python newbie.
I have numpy, scipy, and pyaudiolab up and going, but am having trouble getting pysamplerate to happen. In attempting to install pysamplerate, I have run pysamplerate's setup.py in a python interpreter, choosing task [2], the install option. That does the following:
samplerate_info:
libraries samplerate not found in /Library/Frameworks/Python.framework/Versions/2.5/lib
FOUND:
libraries = ['samplerate']
library_dirs = ['/usr/local/lib']
fulllibloc = /usr/local/lib/libsamplerate.so.0
fullheadloc = /usr/local/include/samplerate.h
include_dirs = ['/usr/local/include']
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_py
copying pysamplerate.py -> build/lib/pysamplerate
running install_lib
creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
copying build/lib/pysamplerate/__init__.py -> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
copying build/lib/pysamplerate/generate_const.py -> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
copying build/lib/pysamplerate/header_parser.py -> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
copying build/lib/pysamplerate/info.py -> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
copying build/lib/pysamplerate/pysamplerate.py -> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
copying build/lib/pysamplerate/setup.py -> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate
byte-compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate/__init__.py to __init__.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate/generate_const.py to generate_const.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate/header_parser.py to header_parser.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate/info.py to info.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate/pysamplerate.py to pysamplerate.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate/setup.py to setup.pyc
running install_egg_info
Writing /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pysamplerate-0.1-py2.5.egg-info
****************************************
The latest version of libsamplerate has been installed in /usr/local/lib/, with ls libsamplerate* listing the following:
libsamplerate.0.1.1.dylib libsamplerate.dylib
libsamplerate.0.dylib libsamplerate.la
libsamplerate.a
Starting a new python interpreter, attempting to import pysamplerate, i get:
>>> import pysamplerate
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pysamplerate.py", line 23, in <module>
_src = cdll.LoadLibrary('/usr/local/lib/libsamplerate.so.0')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ctypes/__init__.py", line 423, in LoadLibrary
return self._dlltype(name)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ctypes/__init__.py", line 340, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/usr/local/lib/libsamplerate.so.0, 6): image not found
****************************************
What I see is that libsamplerate.so.0 is missing from the /usr/local/lib directory. Is this a file that should be created by pysamplerate's setup.py?
Anyway, I'm doing something wrong. Sure it is rather simple.
Thanks for the help.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Joseph Anderson
Lecturer in Music
School of Arts and New Media
University of Hull, Scarborough Campus,
Scarborough, North Yorkshire, YO11 3AZ, UK
T: +44.(0)1723.357341 T: +44.(0)1723.357370 F: +44.(0)1723.350815
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4128 bytes
Desc: not available
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080301/7acad961/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080301/7acad961/attachment.ksh>
More information about the SciPy-User
mailing list