Tips to help you install scikits.audiolab

106 views
Skip to first unread message

Shaoduo Xie

unread,
Jan 22, 2013, 10:38:43 PM1/22/13
to 12-13-gatech-music...@googlegroups.com
Hi guys,

If you want to use scikits.audiolab which sylvain suggests, the following steps might save your time.

The way to have a good install on OSX is to use MacPorts and pip, macports is for installing libsndfile, and pip is for installing scikits.audiolab through pypi.

Here are the steps:

Download and install macports:

Download and install pip:
1. download and install setuptools, which is the prerequisite of pip, http://pypi.python.org/pypi/setuptools  .
For short, you need to download the package and run "sh setuptools-0.6c11-py2.7.egg" in your terminal. Beware of your python version, normally 2.7.

2. download and install pip here, http://www.pip-installer.org/en/latest/installing.html#installing-globally    (I used this approach to install pip, )
don't bother with that curl sentence, it's just for downlong the get-pip.py. You can directly download get-pip.py file right above that.

3. run the file as written in that page, remember to sudo it.



Then you should firstly install the libsndfile by macports:

sudo port install libsndfile +universal

this will install the libsndfile for x86 and x64 architecture, this is important or you will only get the x64 version and you will get error when doing import scikits.audiolab.

Lastly, you can install the audiolab, by:

sudo pip install scikits.audiolab


Hope this can help you out.
Directly download the libsndfile source codes from its official site and do the configure make install routine will have some problems. The first is the "missing carbon.h" problem, because it should be #include <Carbon/Carbon.h> in its source file. And I don't know how to make it build universally. You can try to solve this problem in this way if you have time.

shaoduo

Minwei Gu

unread,
Jan 22, 2013, 10:40:51 PM1/22/13
to 12-13-gatech-music...@googlegroups.com
善良的少年
--
 
 

Ruofeng Chen

unread,
Jan 22, 2013, 10:42:03 PM1/22/13
to 12-13-gatech-music...@googlegroups.com
An alternate way is to use the one built in scipy. You don't need to install anything else. Do the following:

import scipy.io.wavfile
fs, data = scipy.io.wavfile.read(open("Trumpt44.wav", 'r'))

Ruofeng


shaoduo

--
 
 

Scott McCoid

unread,
Jan 23, 2013, 9:06:48 AM1/23/13
to 12-13-gatech-music...@googlegroups.com
If you "need" to build libsndfile for some reason, I was able to do it using a newer version of the source:

If you follow the instructions in the Install file, then it might work. Then follow Shauduo's instructions for the rest. 

If for some reason Shaoduo's method doesn't work (I don't see why it wouldn't) and you can't get it to build on your machine, let me know. 

Scott

--
 
 

Reply all
Reply to author
Forward
0 new messages