tuffy / python-audio-tools

A collection of audio handling programs which work from the command line.
http://audiotools.sourceforge.net
GNU General Public License v2.0
252 stars 56 forks source link

Problems installing with `pip` #4

Open intuited opened 14 years ago

intuited commented 14 years ago

Hi, this seems pretty low-priority, since it's not even part of the recommended installation procedure, but somebody might be interested.

I was unable to install from the source distribution tarball using sudo pip install audiotools-2.15.tar.gz. My attempt to do so spit out this error section (preceding & following lines elided):

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION=2.15 -I/usr/include/python2.6 -c src/md5.c -o build/temp.linux-x86_64-2.6/src/md5.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION=2.15 -I/usr/include/python2.6 -c src/encoders/flac.c -o build/temp.linux-x86_64-2.6/src/encoders/flac.o
In file included from src/encoders/flac.c:1:
src/encoders/flac.h:265:22: error: flac_crc.h: No such file or directory
src/encoders/flac.c: In function ‘encoders_encode_flac’:
src/encoders/flac.c:167: error: ‘flac_crc8’ undeclared (first use in this function)
src/encoders/flac.c:167: error: (Each undeclared identifier is reported only once

A closer look reveals that the file src/encoders/flac_crc.h is a symbolic link.

I was able to get the module to install by running sudo pip install . from within the unzipped directory. I didn't try using easy_install or other methods because I didn't want it to get installed without pip keeping track of the installed files for possible later uninstallation.

I'm running ubuntu 10.04 x86_64.

Also sorry if you prefer to use a sourceforge issue tracker; I didn't see a link to one anywhere.

tuffy commented 14 years ago

I'll try to put flac_crc, and any other routines shared between encoders and decoders, into a proper common/ directory. That would be cleaner than the current symlink hack and should hopefully solve your build problem.

intuited commented 14 years ago

Seems appropriate. I'm definitely in no rush btw: things are working great for me after doing the extract & install. Mostly I was just looking for a good conversion utility, and track2track seems to be working well, thanks!