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
251 stars 57 forks source link

fatal error: cdio/cdda.h: No such file or directory #12

Closed mistal-distal closed 11 years ago

mistal-distal commented 11 years ago

While trying to make install, or pip install, this error comes up .

sudo pip install audiotools-2.19.tar.gz sudo make install Both yield the same result of:


sudo pip install audiotools-2.19.tar.gz Unpacking ./audiotools-2.19.tar.gz Running setup.py egg_info for package from file:///home/patroklos/Desktop/audiotools-2.19.tar.gz

Installing collected packages: Python-Audio-Tools Running setup.py install for Python-Audio-Tools building 'audiotools.cdio' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cdiomodule.c -o build/temp.linux-x86_64-2.7/src/cdiomodule.o In file included from src/cdiomodule.c:1:0: src/cdiomodule.h:2:23: fatal error: cdio/cdda.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools;file='/tmp/pip-JWuLXe-build/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-2EcoGr-record/install-record.txt: running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/audiotools

copying audiotools/aiff.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/id3v1.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/musicbrainz.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/image.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/dvda.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/au.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/m4a.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/text.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/id3.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/player.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/cue.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/wav.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/freedb.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/shn.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/vorbiscomment.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/init.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/accuraterip.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/toc.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/mp3.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/ogg.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/flac.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/ape.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/m4a_atoms.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/opus.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/delta.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/vorbis.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/ui.py -> build/lib.linux-x86_64-2.7/audiotools

creating build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/shn.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/init.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/flac.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/alac.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

creating build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/shn.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/init.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/flac.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/alac.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

running build_ext

building 'audiotools.cdio' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cdiomodule.c -o build/temp.linux-x86_64-2.7/src/cdiomodule.o

In file included from src/cdiomodule.c:1:0:

src/cdiomodule.h:2:23: fatal error: cdio/cdda.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1


This was suggested on StackOverflow:

For anyone who (like me) stumbles over this from Google, I fixed it by linking python to >python2.7 instead of python3. http://stackoverflow.com/questions/7199061/python-audio-tools-installation-problem

tuffy commented 11 years ago

Looks like you may not have libcdio and/or its development libraries installed. It's usually called libcdio-dev or libcdio-devel in package managers, or you can install it from the source available at http://www.gnu.org/software/libcdio/

mistal-distal commented 11 years ago

Sudo apt-get install libcdio-dev:

sudo apt-get install libcdio-dev Reading package lists... Done Building dependency tree
Reading state information... Done libcdio-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded.


Log of pip install:


/usr/bin/pip run on Sat Mar 23 10:49:36 2013 Unpacking ./audiotools-2.19.tar.gz

Running setup.py egg_info for package from file:///home/{user}/Desktop/audiotools-2.19.tar.gz

running egg_info
creating pip-egg-info/Python_Audio_Tools.egg-info
writing pip-egg-info/Python_Audio_Tools.egg-info/PKG-INFO
writing top-level names to pip-egg-info/Python_Audio_Tools.egg-info/top_level.txt
writing dependency_links to pip-egg-info/Python_Audio_Tools.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/Python_Audio_Tools.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found

reading manifest file 'pip-egg-info/Python_Audio_Tools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/Python_Audio_Tools.egg-info/SOURCES.txt'

Installing collected packages: Python-Audio-Tools

Running setup.py install for Python-Audio-Tools

Running command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-78kLp_-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-RFcCgM-record/install-record.txt
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/audiotools
copying audiotools/aiff.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/id3v1.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/musicbrainz.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/image.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/dvda.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/au.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/m4a.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/text.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/id3.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/player.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/cue.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/wav.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/freedb.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/shn.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/vorbiscomment.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/__init__.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/accuraterip.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/toc.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/mp3.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/ogg.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/flac.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/ape.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/m4a_atoms.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/opus.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/delta.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/vorbis.py -> build/lib.linux-x86_64-2.7/audiotools
copying audiotools/ui.py -> build/lib.linux-x86_64-2.7/audiotools
creating build/lib.linux-x86_64-2.7/audiotools/py_decoders
copying audiotools/py_decoders/shn.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders
copying audiotools/py_decoders/__init__.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders
copying audiotools/py_decoders/flac.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders
copying audiotools/py_decoders/alac.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders
copying audiotools/py_decoders/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders
creating build/lib.linux-x86_64-2.7/audiotools/py_encoders
copying audiotools/py_encoders/shn.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders
copying audiotools/py_encoders/__init__.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders
copying audiotools/py_encoders/flac.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders
copying audiotools/py_encoders/alac.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders
copying audiotools/py_encoders/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders
running build_ext
building 'audiotools.cdio' extension

creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cdiomodule.c -o build/temp.linux-x86_64-2.7/src/cdiomodule.o

In file included from src/cdiomodule.c:1:0:

src/cdiomodule.h:2:23: fatal error: cdio/cdda.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-78kLp_-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-RFcCgM-record/install-record.txt:

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/audiotools

copying audiotools/aiff.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/id3v1.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/musicbrainz.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/image.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/dvda.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/au.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/m4a.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/text.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/id3.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/player.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/cue.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/wav.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/freedb.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/shn.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/vorbiscomment.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/init.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/accuraterip.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/toc.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/mp3.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/ogg.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/flac.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/ape.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/m4a_atoms.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/opus.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/delta.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/vorbis.py -> build/lib.linux-x86_64-2.7/audiotools

copying audiotools/ui.py -> build/lib.linux-x86_64-2.7/audiotools

creating build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/shn.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/init.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/flac.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/alac.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

copying audiotools/py_decoders/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools/py_decoders

creating build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/shn.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/init.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/flac.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/alac.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

copying audiotools/py_encoders/wavpack.py -> build/lib.linux-x86_64-2.7/audiotools/py_encoders

running build_ext

building 'audiotools.cdio' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cdiomodule.c -o build/temp.linux-x86_64-2.7/src/cdiomodule.o

In file included from src/cdiomodule.c:1:0:

src/cdiomodule.h:2:23: fatal error: cdio/cdda.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1


Command /usr/bin/python -c "import setuptools;file='/tmp/pip-78kLp-build/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-RFcCgM-record/install-record.txt failed with error code 1 in /tmp/pip-78kLp-build

Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 250, in run requirement_set.install(install_options, global_options) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1133, in install requirement.install(install_options, global_options) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 577, in install cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) File "/usr/lib/python2.7/dist-packages/pip/init.py", line 256, in call_subprocess % (commanddesc, proc.returncode, cwd)) InstallationError: Command /usr/bin/python -c "import setuptools;file='/tmp/pip-78kLp-build/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-RFcCgM-record/install-record.txt failed with error code 1 in /tmp/pip-78kLp_-build

mistal-distal commented 11 years ago

Solution in the comments here: https://github.com/tuffy/python-audio-tools/issues/14