Comments (6)
Provide a complete compiler output and more information about what you are doing first.
from pocketsphinx-python.
Hello again,
Using a Raspberry Pi 3 B.
I followed the installation instruction on http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx
Command 'pocketsphinx_continuous -inmic yes' does work.
But when i try to install pocketsphinx using 'sudo pip install pocketsphinx' or 'pip install pocketsphinx' i get this error:
Collecting pocketsphinx
Using cached pocketsphinx-0.1.3.zip
Building wheels for collected packages: pocketsphinx
Running setup.py bdist_wheel for pocketsphinx ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-ZGW4Dg/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpBmG1kepip-wheel- --python-tag cp27:
running bdist_wheel
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
creating build
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/swig
creating build/temp.linux-armv7l-2.7/swig/sphinxbase
creating build/temp.linux-armv7l-2.7/deps
creating build/temp.linux-armv7l-2.7/deps/sphinxbase
creating build/temp.linux-armv7l-2.7/deps/sphinxbase/src
creating build/temp.linux-armv7l-2.7/deps/sphinxbase/src/libsphinxad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python2.7 -c swig/sphinxbase/ad_wrap.c -o build/temp.linux-armv7l-2.7/swig/sphinxbase/ad_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
In file included from deps/sphinxbase/include/sphinxbase/ad.h:44:0,
from swig/sphinxbase/ad_wrap.c:2958:
deps/sphinxbase/include/android/sphinx_config.h:11:0: warning: "SIZEOF_LONG" redefined
#define SIZEOF_LONG 8
^
In file included from /usr/include/python2.7/pyconfig.h:13:0,
from /usr/include/python2.7/Python.h:8,
from swig/sphinxbase/ad_wrap.c:130:
/usr/include/arm-linux-gnueabihf/python2.7/pyconfig.h:1013:0: note: this is the location of the previous definition
#define SIZEOF_LONG 4
^
cc1: warning: unrecognized command line option "-Wno-misleading-indentation"
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python2.7 -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-armv7l-2.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
#include <pulse/pulseaudio.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
Installing collected packages: pocketsphinx
Running setup.py install for pocketsphinx ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-ZGW4Dg/pocketsphinx/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-KG77Vz-record/install-record.txt --single-version-externally-managed --compile:
running install
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
creating build
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/swig
creating build/temp.linux-armv7l-2.7/swig/sphinxbase
creating build/temp.linux-armv7l-2.7/deps
creating build/temp.linux-armv7l-2.7/deps/sphinxbase
creating build/temp.linux-armv7l-2.7/deps/sphinxbase/src
creating build/temp.linux-armv7l-2.7/deps/sphinxbase/src/libsphinxad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python2.7 -c swig/sphinxbase/ad_wrap.c -o build/temp.linux-armv7l-2.7/swig/sphinxbase/ad_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
In file included from deps/sphinxbase/include/sphinxbase/ad.h:44:0,
from swig/sphinxbase/ad_wrap.c:2958:
deps/sphinxbase/include/android/sphinx_config.h:11:0: warning: "SIZEOF_LONG" redefined
#define SIZEOF_LONG 8
^
In file included from /usr/include/python2.7/pyconfig.h:13:0,
from /usr/include/python2.7/Python.h:8,
from swig/sphinxbase/ad_wrap.c:130:
/usr/include/arm-linux-gnueabihf/python2.7/pyconfig.h:1013:0: note: this is the location of the previous definition
#define SIZEOF_LONG 4
^
cc1: warning: unrecognized command line option "-Wno-misleading-indentation"
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python2.7 -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-armv7l-2.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
#include <pulse/pulseaudio.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-ZGW4Dg/pocketsphinx/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-KG77Vz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ZGW4Dg/pocketsphinx/
any idea what i did wrong? Thanks a lot in advance!!!
from pocketsphinx-python.
Pulseaudio is installed and up-to-date
and i used the newest pocketsphinx and sphinxbase from https://github.com/cmusphinx
from pocketsphinx-python.
using ' git clone --recursive https://github.com/bambocher/pocketsphinx-python' and 'sudo python setup.py install' i get this error:
running install
running build_ext
building 'sphinxbase._ad' extension
swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
creating build
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/swig
creating build/temp.linux-armv7l-2.7/swig/sphinxbase
creating build/temp.linux-armv7l-2.7/deps
creating build/temp.linux-armv7l-2.7/deps/sphinxbase
creating build/temp.linux-armv7l-2.7/deps/sphinxbase/src
creating build/temp.linux-armv7l-2.7/deps/sphinxbase/src/libsphinxad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python2.7 -c swig/sphinxbase/ad_wrap.c -o build/temp.linux-armv7l-2.7/swig/sphinxbase/ad_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
In file included from deps/sphinxbase/include/sphinxbase/ad.h:44:0,
from swig/sphinxbase/ad_wrap.c:2958:
deps/sphinxbase/include/android/sphinx_config.h:11:0: warning: "SIZEOF_LONG" redefined
#define SIZEOF_LONG 8
^
In file included from /usr/include/python2.7/pyconfig.h:13:0,
from /usr/include/python2.7/Python.h:8,
from swig/sphinxbase/ad_wrap.c:130:
/usr/include/arm-linux-gnueabihf/python2.7/pyconfig.h:1013:0: note: this is the location of the previous definition
#define SIZEOF_LONG 4
^
cc1: warning: unrecognized command line option "-Wno-misleading-indentation"
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python2.7 -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-armv7l-2.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
#include <pulse/pulseaudio.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
sorry, dont wanna spam
from pocketsphinx-python.
okay, nevermind....
after 15 hours i realised i was just missing libpulse-dev
from pocketsphinx-python.
Ok, congratulations
from pocketsphinx-python.
Related Issues (20)
- train Indian English g2p model with seq2seq
- Please clarify the way of importing pocketshinx and sphinxbase modules in example.py HOT 1
- Basic usage example inaccurate? HOT 1
- How to print phoneme sequence? HOT 1
- how do i trained tidigits acoustic model with my own audiofiles? missing mixture_weights file in the acoustic tidigits model. HOT 1
- ImportError: cannot import name 'LiveSpeech' from 'pocketsphinx' HOT 3
- new_Decoder returned -1 when Unicode character on project path HOT 1
- Decoding with other acoustic models HOT 1
- how to use microphone ? HOT 2
- ERROR: "acmod.c", line 79: does not contain acoustic model definition 'mdef' HOT 1
- pip install fails HOT 1
- Can I use with PySoundFile? HOT 3
- pocketsphinx phrase in speech HOT 2
- This repository is 120 commits behind bambocher HOT 1
- Not able to install pocketsphinx HOT 2
- Pipenv install fails HOT 2
- Understand 'no_search' and 'full_utt' parameters HOT 1
- Should we be now using this branch? HOT 1
- testsuite failure on i386 HOT 1
- NameError: global name 'Ad' is not defined pocketsphinx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pocketsphinx-python.