Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing speex in Ubuntu 16.04 and Python 3.4.2 #1

Open
chan71 opened this issue Jan 15, 2017 · 3 comments
Open

Error installing speex in Ubuntu 16.04 and Python 3.4.2 #1

chan71 opened this issue Jan 15, 2017 · 3 comments

Comments

@chan71
Copy link

chan71 commented Jan 15, 2017

Getting below error when installing speex module in python 3.4.2. What could the issue?

Collecting pyspeex from git+https://github.com/NuanceDev/[email protected]#egg=pyspeex (from -r requirements.txt (line 5))
  Cloning https://github.com/NuanceDev/pyspeex.git (to 0.9.0) to /tmp/pip-build-ow3eu6mk/pyspeex
  Running setup.py (path:/tmp/pip-build-ow3eu6mk/pyspeex/setup.py) egg_info for package pyspeex produced metadata for project name speex. Fix your #egg=pyspeex fragments.
  Running setup.py install for speex ... error
    Complete output from command /home/ck/env-py34/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ow3eu6mk/pyspeex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5wu31oul-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ck/env-py34/include/site/python3.4/speex:
    running install
    running build
    running build_ext
    building 'speex' extension
    creating build
    creating build/temp.linux-x86_64-3.4
    gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python3.4m -c speex.c -o build/temp.linux-x86_64-3.4/speex.o
    speex.c:343:31: fatal error: speex/speex_types.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/ck/env-py34/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ow3eu6mk/pyspeex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5wu31oul-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ck/env-py34/include/site/python3.4/speex" failed with error code 1 in /tmp/pip-build-ow3eu6mk/pyspeex/

@titilambert
Copy link

titilambert commented Aug 2, 2017

Missing documentation,
But you can try: sudo apt-get install build-essential libspeex-dev
Then rerun your command

@samueldg
Copy link
Contributor

samueldg commented Aug 2, 2017

@chan71
To complement @titilambert's reply

On Windows (cygwin) you can use Cygwin to install the following :

  • speex
  • speex-devel
  • speexdsp
  • speexdsp-devel

On Mac (homebrew): brew install speex speexdsp

@titilambert
Copy link

titilambert commented Aug 2, 2017

Ho !
So I guess on the following command should be good on ubuntu:

sudo apt-get install build-essential libspeex-dev libspeexdsp-dev libpulse-dev

Thanks @samueldg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants