Error when installing
See original GitHub issueI tried installing this script but ran into an issue, not sure what to do. I am running on a non-root user with no sudo access.
user@server ~ $ pip3 --version
pip 10.0.0 from /home/user/.local/lib64/python3.4/site-packages/pip (python 3.4)
user@server ~ $ python3 --version
Python 3.6.5
user@server ~ $ pip3 install --user wsaccel
Collecting wsaccel
Downloading https://files.pythonhosted.org/packages/52/46/9ef0744b434ac723ae3aeddcb92ab29af14f8912f53f47590b5a0db0b9d6/wsaccel-0.6.2.tar.gz
Building wheels for collected packages: wsaccel
Running setup.py bdist_wheel for wsaccel ... done
Stored in directory: /home/user/.cache/pip/wheels/6c/30/e8/1ea54bc1e5bcf3ec2c5c91d393b02d2fb89121544e46645209
Successfully built wsaccel
Installing collected packages: wsaccel
Successfully installed wsaccel-0.6.2
user@server ~ $ rm -r src/
rm: remove write-protected regular file 'src/bw-plex/.git/objects/pack/pack-1812660c18bf9c4d17849b8ba7fb56365616b62e.pack'? y
rm: remove write-protected regular file 'src/bw-plex/.git/objects/pack/pack-1812660c18bf9c4d17849b8ba7fb56365616b62e.idx'? y
user@server ~ $ pip3 install -e git+https://github.com/Hellowlol/bw_plex.git#egg=bw_plex
Obtaining bw_plex from git+https://github.com/Hellowlol/bw_plex.git#egg=bw_plex
Updating ./src/bw-plex clone
Collecting librosa (from bw_plex)
Collecting plexapi>=3.0.6 (from bw_plex)
Requirement already satisfied: joblib in ./.local/lib64/python3.4/site-packages (from bw_plex) (0.11)
Requirement already satisfied: numpy in ./.local/lib64/python3.4/site-packages (from bw_plex) (1.14.2)
Collecting docopt (from bw_plex)
Collecting click (from bw_plex)
Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Requirement already satisfied: scipy in ./.local/lib64/python3.4/site-packages (from bw_plex) (1.0.1)
Collecting matplotlib (from bw_plex)
Using cached https://files.pythonhosted.org/packages/c0/a1/fc0ab025db6c6189b377da66cb0fc281c6ad68021820ef7663d85e177b8d/matplotlib-2.2.2-cp34-cp34m-manylinux1_x86_64.whl
Collecting psutil (from bw_plex)
Collecting profilehooks (from bw_plex)
Using cached https://files.pythonhosted.org/packages/b6/b2/d2dfe3bab029df73991a3ba244d94c24d4a96e2fa2aabe6bca85fcc67304/profilehooks-1.10.0-py2.py3-none-any.whl
Collecting sqlalchemy (from bw_plex)
Collecting configobj (from bw_plex)
Collecting youtube-dl (from bw_plex)
Using cached https://files.pythonhosted.org/packages/38/98/759cc271d2cda665671a835689b3fb5c5dcd6a3a3cdaf81164dd270cb263/youtube_dl-2018.4.16-py2.py3-none-any.whl
Collecting beautifulsoup4 (from bw_plex)
Using cached https://files.pythonhosted.org/packages/9e/d4/10f46e5cfac773e22707237bfcd51bbffeaf0a576b0a847ec7ab15bd7ace/beautifulsoup4-4.6.0-py3-none-any.whl
Collecting html5lib (from bw_plex)
Using cached https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl
Collecting opencv-contrib-python (from bw_plex)
Using cached https://files.pythonhosted.org/packages/5e/01/d482c01255bd2f742637bc83a93384d17bb595e5065b43e7665414850897/opencv_contrib_python-3.4.0.12-cp34-cp34m-manylinux1_x86_64.whl
Collecting pytesseract (from bw_plex)
Collecting pocketsphinx (from bw_plex)
Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Collecting SpeechRecognition (from bw_plex)
Using cached https://files.pythonhosted.org/packages/26/e1/7f5678cd94ec1234269d23756dbdaa4c8cfaed973412f88ae8adf7893a50/SpeechRecognition-3.8.1-py2.py3-none-any.whl
Collecting tablib (from bw_plex)
Requirement already satisfied: decorator>=3.0.0 in ./.local/lib64/python3.4/site-packages (from librosa->bw_plex) (4.3.0)
Collecting resampy>=0.2.0 (from librosa->bw_plex)
Requirement already satisfied: audioread>=2.0.0 in ./.local/lib64/python3.4/site-packages (from librosa->bw_plex) (2.1.5)
Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in ./.local/lib64/python3.4/site-packages (from librosa->bw_plex) (0.19.1)
Requirement already satisfied: six>=1.3 in ./.local/lib64/python3.4/site-packages (from librosa->bw_plex) (1.11.0)
Collecting requests (from plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
Collecting tqdm (from plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/78/bc/de067ab2d700b91717dc5459d86a1877e2df31abfb90ab01a5a5a5ce30b4/tqdm-4.23.0-py2.py3-none-any.whl
Collecting websocket-client (from plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/9d/fb/f51a03e232e00d6c504dfe815aed090c894ba3f8d3f7fd9612f3e227bf24/websocket_client-0.47.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib->bw_plex)
Using cached https://files.pythonhosted.org/packages/dc/83/15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib->bw_plex)
Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.1 (from matplotlib->bw_plex)
Using cached https://files.pythonhosted.org/packages/0c/57/19f3a65bcf6d5be570ee8c35a5398496e10a0ddcbc95393b2d17f86aaaf8/python_dateutil-2.7.2-py2.py3-none-any.whl
Collecting cycler>=0.10 (from matplotlib->bw_plex)
Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib->bw_plex)
Using cached https://files.pythonhosted.org/packages/12/51/019f130533d1561c07a5e9877bed100bafca9864a52eaddc0db1d40da0b8/kiwisolver-1.0.1-cp34-cp34m-manylinux1_x86_64.whl
Collecting webencodings (from html5lib->bw_plex)
Using cached https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Collecting Pillow (from pytesseract->bw_plex)
Using cached https://files.pythonhosted.org/packages/c6/c1/dfd3b4d0ddd92cf2ef6bb2b0786649b29fb7e1dd560c00f5ac0383aa7023/Pillow-5.1.0-cp34-cp34m-manylinux1_x86_64.whl
Collecting xlwt (from tablib->bw_plex)
Using cached https://files.pythonhosted.org/packages/44/48/def306413b25c3d01753603b1a222a011b8621aed27cd7f89cbc27e6b0f4/xlwt-1.3.0-py2.py3-none-any.whl
Collecting odfpy (from tablib->bw_plex)
Requirement already satisfied: pyyaml in ./.local/lib64/python3.4/site-packages (from tablib->bw_plex) (3.12)
Collecting unicodecsv (from tablib->bw_plex)
Collecting openpyxl (from tablib->bw_plex)
Collecting xlrd (from tablib->bw_plex)
Using cached https://files.pythonhosted.org/packages/07/e6/e95c4eec6221bfd8528bcc4ea252a850bffcc4be88ebc367e23a1a84b0bb/xlrd-1.1.0-py2.py3-none-any.whl
Collecting numba>=0.32 (from resampy>=0.2.0->librosa->bw_plex)
Collecting chardet<3.1.0,>=3.0.2 (from requests->plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests->plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->plexapi>=3.0.6->bw_plex)
Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./.local/lib64/python3.4/site-packages (from kiwisolver>=1.0.1->matplotlib->bw_plex) (39.0.1)
Collecting et-xmlfile (from openpyxl->tablib->bw_plex)
Collecting jdcal (from openpyxl->tablib->bw_plex)
Using cached https://files.pythonhosted.org/packages/a0/38/dcf83532480f25284f3ef13f8ed63e03c58a65c9d3ba2a6a894ed9497207/jdcal-1.4-py2.py3-none-any.whl
Collecting llvmlite>=0.22.0.dev0 (from numba>=0.32->resampy>=0.2.0->librosa->bw_plex)
Using cached https://files.pythonhosted.org/packages/b4/f4/ddc252b83257bbf3922e47c5042a2e28e68bd36146a932adda3010c48377/llvmlite-0.22.0.tar.gz
Building wheels for collected packages: pocketsphinx, llvmlite
Running setup.py bdist_wheel for pocketsphinx ... error
Complete output from command /usr/lib/python-exec/python3.4/python3 -u -c "import setuptools, tokenize;__file__='/home/user/tmp/pip-install-oxraeg71/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 /home/user/tmp/pip-wheel-bsi9_3h1 --python-tag cp34:
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-x86_64-3.4
creating build/temp.linux-x86_64-3.4/swig
creating build/temp.linux-x86_64-3.4/swig/sphinxbase
creating build/temp.linux-x86_64-3.4/deps
creating build/temp.linux-x86_64-3.4/deps/sphinxbase
creating build/temp.linux-x86_64-3.4/deps/sphinxbase/src
creating build/temp.linux-x86_64-3.4/deps/sphinxbase/src/libsphinxad
x86_64-pc-linux-gnu-gcc -pthread -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.4m -c swig/sphinxbase/ad_wrap.c -o build/temp.linux-x86_64-3.4/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
x86_64-pc-linux-gnu-gcc -pthread -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.4m -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-x86_64-3.4/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 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Running setup.py bdist_wheel for llvmlite ... error
Complete output from command /usr/lib/python-exec/python3.4/python3 -u -c "import setuptools, tokenize;__file__='/home/user/tmp/pip-install-oxraeg71/llvmlite/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 /home/user/tmp/pip-wheel-jwxnwxkd --python-tag cp34:
running bdist_wheel
/usr/lib/python-exec/python3.4/python3 /home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 91, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/lib64/python3.4/subprocess.py", line 604, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
File "/usr/lib64/python3.4/subprocess.py", line 856, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.4/subprocess.py", line 1464, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 141, in <module>
main()
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 131, in main
main_posix('linux', '.so')
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 94, in main_posix
"to the path for llvm-config" % (llvm_config,))
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/lib/python-exec/python3.4/python3' failed with exit status 1
----------------------------------------
Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build pocketsphinx llvmlite
Installing collected packages: llvmlite, numba, resampy, librosa, chardet, urllib3, idna, certifi, requests, tqdm, websocket-client, plexapi, docopt, click, pytz, pyparsing, python-dateutil, cycler, kiwisolver, matplotlib, psutil, profilehooks, sqlalchemy, configobj, youtube-dl, beautifulsoup4, webencodings, html5lib, opencv-contrib-python, Pillow, pytesseract, pocketsphinx, SpeechRecognition, xlwt, odfpy, unicodecsv, et-xmlfile, jdcal, openpyxl, xlrd, tablib, bw-plex
Running setup.py install for llvmlite ... error
Complete output from command /usr/lib/python-exec/python3.4/python3 -u -c "import setuptools, tokenize;__file__='/home/user/tmp/pip-install-oxraeg71/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /home/user/tmp/pip-record-8l2fmyvi/install-record.txt --single-version-externally-managed --compile:
running install
running build
got version from file /home/user/tmp/pip-install-oxraeg71/llvmlite/llvmlite/_version.py {'version': '0.22.0', 'full': '46b4b5e288f3a175332ad68d8c3745c63fbb5701'}
running build_ext
/usr/lib/python-exec/python3.4/python3 /home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 91, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/lib64/python3.4/subprocess.py", line 604, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
File "/usr/lib64/python3.4/subprocess.py", line 856, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.4/subprocess.py", line 1464, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 141, in <module>
main()
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 131, in main
main_posix('linux', '.so')
File "/home/user/tmp/pip-install-oxraeg71/llvmlite/ffi/build.py", line 94, in main_posix
"to the path for llvm-config" % (llvm_config,))
RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config
error: command '/usr/lib/python-exec/python3.4/python3' failed with exit status 1
----------------------------------------
Command "/usr/lib/python-exec/python3.4/python3 -u -c "import setuptools, tokenize;__file__='/home/user/tmp/pip-install-oxraeg71/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /home/user/tmp/pip-record-8l2fmyvi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /home/user/tmp/pip-install-oxraeg71/llvmlite
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to troubleshoot Windows Installer errors - Microsoft Support
Right-click the Windows Installer service, and then click Start. The service should start without errors. Try to install or to uninstall again.
Read more >How to Fix Microsoft Windows 10 Installation Error Codes
Error Codes while installing Windows 10 and their corresponding solutions · Go to C: drive. · Click View and check the Hidden Files...
Read more >If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >[SOLVED] Windows 10 Installation Has Failed - Driver Easy
The “Windows 10 installation has failed” error is one of the most reported errors that users get when they try to install Windows...
Read more >Fix problems installing Chrome - Google Chrome Help
Fix most installation errors · Make sure your internet connection is working normally. · Check if your device meets the system requirements. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You prob fixed this already, but if anyone has this issue on Ubuntu, you have to install libpulse-dev to make it recognize pulse/pulseaudio.h.
apt-get install libpulse-devshould work.I have created that dockerfile you can use to run bw_plex