Giter Club home page Giter Club logo

Comments (6)

nshmyrev avatar nshmyrev commented on July 19, 2024

Provide a complete compiler output and more information about what you are doing first.

from pocketsphinx-python.

lihp123 avatar lihp123 commented on July 19, 2024

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.

lihp123 avatar lihp123 commented on July 19, 2024

Pulseaudio is installed and up-to-date
and i used the newest pocketsphinx and sphinxbase from https://github.com/cmusphinx

from pocketsphinx-python.

lihp123 avatar lihp123 commented on July 19, 2024

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.

lihp123 avatar lihp123 commented on July 19, 2024

okay, nevermind....
after 15 hours i realised i was just missing libpulse-dev

from pocketsphinx-python.

nshmyrev avatar nshmyrev commented on July 19, 2024

Ok, congratulations

from pocketsphinx-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.