erro ao instalar o pocketsphinx no ubuntu 21.04

1. erro ao instalar o pocketsphinx no ubuntu 21.04

pedro enrrique
ubuntulinux1469

(usa Ubuntu)

Enviado em 29/07/2021 - 16:55h

por favor prescisso de ajuda estou com um problemao quando tento instalar o pocketsphinx no meu ubuntu 21.04 estou tentando resolver a 2 dias e nada se alguem puder me ajudar agradeço muito
aqui esta a mensagem de erro

pip3 install 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-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/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-ya8tvgwr
cwd: /tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/
Complete output (6 lines):
running bdist_wheel
running build_ext
building 'sphinxbase._sphinxbase' extension
swigging deps/sphinxbase/swig/sphinxbase.i to deps/sphinxbase/swig/sphinxbase_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o deps/sphinxbase/swig/sphinxbase_wrap.c deps/sphinxbase/swig/sphinxbase.i
error: command 'swig' failed: No such file or directory
----------------------------------------
ERROR: 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
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/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-record-74aspup3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pocketsphinx
cwd: /tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/
Complete output (6 lines):
running install
running build_ext
building 'sphinxbase._sphinxbase' extension
swigging deps/sphinxbase/swig/sphinxbase.i to deps/sphinxbase/swig/sphinxbase_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o deps/sphinxbase/swig/sphinxbase_wrap.c deps/sphinxbase/swig/sphinxbase.i
error: command 'swig' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r7_81c9b/pocketsphinx_da3a941254804f0dbe8bbfd934f21c04/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-record-74aspup3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pocketsphinx Check the logs for full command output.

obrigado a todos


  


2. Re: erro ao instalar o pocketsphinx no ubuntu 21.04

leandro peçanha scardua
leandropscardua

(usa Ubuntu)

Enviado em 29/07/2021 - 20:48h


Tente instalar o swig
apt-get install swig


3. Re: erro ao instalar o pocketsphinx no ubuntu 21.04

pedro enrrique
ubuntulinux1469

(usa Ubuntu)

Enviado em 29/07/2021 - 20:53h


leandropscardua escreveu:


Tente instalar o swig
apt-get install swig


Tentei mais contínua dando erro


4. Re: erro ao instalar o pocketsphinx no ubuntu 21.04

pedro enrrique
ubuntulinux1469

(usa Ubuntu)

Enviado em 29/07/2021 - 21:16h


leandropscardua escreveu:


Tente instalar o swig
apt-get install swig


Eu nao sei como mais agr eu tentei rodar o comando denovo e instalou tranquilo muito muito obrigado






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts