We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I was trying to install the python package textract which has pocketsphinx as a depandancy, I believe they use pocketsphinx 0.1.13.
Anyhow, the installation via pipenv install textract would fail due to pocketsphinx failing to install via pip.
pipenv install textract
I completely removed the enviroment created by pipenv and initiated a new one. There seems to be a probelm with pocketsphinx on PyPi.
Bellow you can see the steps I took to install pocketsphinx in a clean enviroment.
user@user-Oryx-Pro ~/Documents/Development/Outline $ pipenv --python 3.6 Creating a virtualenv for this project… Pipfile: /home/user/Documents/Development/Outline/Pipfile Using /usr/bin/python3 (3.6.7) to create virtualenv… ⠴ Creating virtual environment...Using base prefix '/usr' New python executable in /home/user/.local/share/virtualenvs/Outline-H7ySTsce/bin/python3 Also creating executable in /home/user/.local/share/virtualenvs/Outline-H7ySTsce/bin/python Installing setuptools, pip, wheel... done. Running virtualenv with interpreter /usr/bin/python3 ✔ Successfully created virtual environment! Virtualenv location: /home/user/.local/share/virtualenvs/Outline-H7ySTsce Creating a Pipfile for this project… user@user-Oryx-Pro ~/Documents/Development/Outline $ pipenv install pocketsphinx Installing pocketsphinx… Adding pocketsphinx to Pipfile's [packages]… ✔ Installation Succeeded Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Locking [packages] dependencies… ✔ Success! Updated Pipfile.lock (d5e3bd)! Installing dependencies from Pipfile.lock (d5e3bd)… An error occurred while installing pocketsphinx==0.1.15 --hash=sha256:1c2a8cc7f2032f9e8214f5e4e864511fe37bfd27f2045fbf8aed9c54569dc881 --hash=sha256:1f3eaca1b49d579e89e909bb101ad033493a1c9dddd8c72afd6b755c70365d56 --hash=sha256:34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63 --hash=sha256:3f438f9f5729a7629c122784697884cff5f2a2e022aef270a4081985d15eae88 --hash=sha256:41d2107b74597cf8444f9e36b91363d60097b4fa88a9c750760a85209deef439 --hash=sha256:667152b4139ba46de172fa627404fe284b2ecd5d6bfcfe905b068801324ba7fb --hash=sha256:71e7cf04433615e21ad3c28a2cc2daa43e96e570f2611f142eb3468f4f7789a6 --hash=sha256:72286c3ecaa6641d426ca80bd4d1b3241c26b1703af419429ef779719e007443 --hash=sha256:855c6761d008cdb4fc2d9aded5c1a0f163ce901f8b64075d36a88ae7814af755 --hash=sha256:8ca14694d7cc111796e63c13c61420553a43a29c63c386c975bfc213d8da3e55 --hash=sha256:9b477fcf8829f53ab470fdcf3fa77db00d71eee321353d10b306f0e5b95e8591 --hash=sha256:bfbbeddb20196abbb04b8f7b5dc03628c7df0dc87e760326d76d37b27fb9d6f9 --hash=sha256:d20b497369bd108dd135b3d4eed1d3edd2c8b51b1b696e67600adbfff2fe3316 --hash=sha256:e2a4f22cddec68e75e796068ae82095dd8dba1187aa3a8abe305bdc6c565e8b4 --hash=sha256:f0fdfe162bc99590e8666251a55d6311ac4cb137482a871f93d38b1834251253! Will try again. 🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1/1 — 00:00:01 Installing initially failed dependencies… [pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 1992, in do_install [pipenv.exceptions.InstallError]: skip_lock=skip_lock, [pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 1253, in do_init [pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror, [pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 859, in do_install_dependencies [pipenv.exceptions.InstallError]: retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs [pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 763, in batch_install [pipenv.exceptions.InstallError]: _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry) [pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 681, in _cleanup_procs [pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines) [pipenv.exceptions.InstallError]: ['Collecting pocketsphinx==0.1.15 (from -r /tmp/pipenv-_gn_b505-requirements/pipenv-bjoi1b3c-requirement.txt (line 1))', ' Using cached https://files.pythonhosted.org/packages/cd/4a/adea55f189a81aed88efa0b0e1d25628e5ed22622ab9174bf696dd4f9474/pocketsphinx-0.1.15.tar.gz', 'Building wheels for collected packages: pocketsphinx', ' Building wheel for pocketsphinx (setup.py): started', " Building wheel for pocketsphinx (setup.py): finished with status 'error'", ' Running setup.py clean for pocketsphinx', 'Failed to build pocketsphinx', 'Installing collected packages: pocketsphinx', ' Running setup.py install for pocketsphinx: started', " Running setup.py install for pocketsphinx: finished with status 'error'"] [pipenv.exceptions.InstallError]: ['ERROR: Complete output from command /home/user/.local/share/virtualenvs/Outline-H7ySTsce/bin/python3 -u -c \'import setuptools, tokenize;__file__=\'"\'"\'/tmp/pip-install-hvz8jx9i/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-kanfgcgg --python-tag cp36:', ' ERROR: 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', " unable to execute 'swig': No such file or directory", " error: command 'swig' failed with exit status 1", ' ----------------------------------------', ' ERROR: Failed building wheel for pocketsphinx', ' ERROR: Complete output from command /home/user/.local/share/virtualenvs/Outline-H7ySTsce/bin/python3 -u -c \'import setuptools, tokenize;__file__=\'"\'"\'/tmp/pip-install-hvz8jx9i/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-record-actwurl7/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/.local/share/virtualenvs/Outline-H7ySTsce/include/site/python3.6/pocketsphinx:', ' ERROR: 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', " unable to execute 'swig': No such file or directory", " error: command 'swig' failed with exit status 1", ' ----------------------------------------', 'ERROR: Command "/home/user/.local/share/virtualenvs/Outline-H7ySTsce/bin/python3 -u -c \'import setuptools, tokenize;__file__=\'"\'"\'/tmp/pip-install-hvz8jx9i/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-record-actwurl7/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/.local/share/virtualenvs/Outline-H7ySTsce/include/site/python3.6/pocketsphinx" failed with error code 1 in /tmp/pip-install-hvz8jx9i/pocketsphinx/'] ERROR: ERROR: Package installation failed... ☤ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:02
The text was updated successfully, but these errors were encountered:
You need to install swig
Sorry, something went wrong.
How does one do this?
@shamoons Download http://www.swig.org/download.html compile and install
No branches or pull requests
Hello,
I was trying to install the python package textract which has pocketsphinx as a depandancy, I believe they use pocketsphinx 0.1.13.
Anyhow, the installation via
pipenv install textract
would fail due to pocketsphinx failing to install via pip.I completely removed the enviroment created by pipenv and initiated a new one. There seems to be a probelm with pocketsphinx on PyPi.
Bellow you can see the steps I took to install pocketsphinx in a clean enviroment.
The text was updated successfully, but these errors were encountered: