-
Notifications
You must be signed in to change notification settings - Fork 35
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
unable to build pocketsphinx #1
Comments
Hello
Did you get an error when running setup.py? Is there a camera on the Raspberry Pi? Try to run the instructions a few more times? It may also be caused by network problems.
Best!
2020-10-03
Adeept Technical Support Team
Shenzhen Adeept Technology Co., Ltd.
E-mail: [email protected]
Website: www.adeept.com
发件人:Andrii Petrenko <[email protected]>
发送时间:2020-10-03 09:47
主题:[adeept/adeept_picar-b] unable to build pocketsphinx (#1)
收件人:"adeept/adeept_picar-b"<[email protected]>
抄送:"Subscribed"<[email protected]>
hello, i have a problem building pocketsphinx
Collecting pocketsphinx
Using cached pocketsphinx-0.1.15.tar.gz (29.1 MB)
Building wheels for collected packages: pocketsphinx
Building wheel for pocketsphinx (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3bxdmmdc/pocketsphinx/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3bxdmmdc/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/pip-wheel-l7rigx5b
cwd: /tmp/pip-install-3bxdmmdc/pocketsphinx/
Complete output (239 lines):
running bdist_wheel
.....
building 'sphinxbase._ad_pulse' extension
swigging swig/sphinxbase/ad_pulse.i to swig/sphinxbase/ad_pulse_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_pulse_wrap.c swig/sphinxbase/ad_pulse.i
creating build/temp.linux-armv7l-3.7/swig
creating build/temp.linux-armv7l-3.7/swig/sphinxbase
creating build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python3.7m -c swig/sphinxbase/ad_pulse_wrap.c -o build/temp.linux-armv7l-3.7/swig/sphinxbase/ad_pulse_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,
from swig/sphinxbase/ad_pulse_wrap.c:3046:
deps/sphinxbase/include/android/sphinx_config.h:11: warning: "SIZEOF_LONG" redefined
#define SIZEOF_LONG 8
In file included from /usr/include/python3.7m/pyconfig.h:13,
from /usr/include/python3.7m/Python.h:8,
from swig/sphinxbase/ad_pulse_wrap.c:150:
/usr/include/arm-linux-gnueabihf/python3.7m/pyconfig.h:1363: note: this is the location of the previous definition
#define SIZEOF_LONG 4
swig/sphinxbase/ad_pulse_wrap.c: In function ‘_wrap_Ad_readinto’:
swig/sphinxbase/ad_pulse_wrap.c:3735:5: warning: ‘PyObject_AsWriteBuffer’ is deprecated [-Wdeprecated-declarations]
res2 = PyObject_AsWriteBuffer(obj1, &buf2, &size2);
^~~~
In file included from /usr/include/python3.7m/Python.h:147,
from swig/sphinxbase/ad_pulse_wrap.c:150:
/usr/include/python3.7m/abstract.h:500:17: note: declared here
PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
^~~~~~~~~~~~~~~~~~~~~~
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/usr/include/python3.7m -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-armv7l-3.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:10: 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
----------------------------------------
ERROR: Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi, I have had the same problem during the past week. I tried 4 more time, same problem. ‘ERROR compilation terminated. Adeept support said the problem is tied to the Speech Feature of the Mars Rover |
DITO |
Hi, how is the rest of your Mars Rover progressing? Mine seems to be working pretty well. I have problems slowing it down to let the ultra sound control what to avoid. Support told me, the Python routine ‘functions.py’ at line 93 Is factory set to .7 meters. I also want to figure out how to stop the server.py from running at boot time, so I can better understand the start up process. If you examine some of the Python code, there are imbedded ‘print’ statements that are supposed to print to the ‘terminal’, what ever that means. Good luck....
…Sent from my iPad
On Nov 11, 2020, at 12:11 PM, Tomascjek ***@***.***> wrote:
Hi, I have had the same problem during the past week. I tried 4 more time, same problem. ‘ERROR compilation terminated.
Error : command ‘arm-Linux-gnueabilf-bcc’ failed with exit status 1
Adeept support said the problem is tied to the Speech Feature of the Mars Rover
DITO
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Just run the command:
team Adeept: I have a fix staged for the setup.py file, tested on RPI4-b and can push it into the master branch if you like. |
I tried to install pockesphinx directly with
But it still causing an error. I then did
I don't know if it is a valid workaround: to check if all examples work. |
hello, i have a problem building pocketsphinx
The text was updated successfully, but these errors were encountered: