Can't start bw_plex watch, keeps erroring out.
See original GitHub issue`USER ~ $ bw_plex watch 2020-01-12 22:01:25,717 :: bw_plex :: INFO :: init.py:172 :: Using bw_plex version 0.1.1.dev76+gd2ce7ed 2020-01-12 22:01:25,717 :: bw_plex :: INFO :: init.py:173 :: default folder set to /home/USER/.config/bw_plex 2020-01-12 22:01:25,765 :: bw_plex :: WARNING :: audio.py:14 :: Failed to import speech_recognition this is required to check for recaps in audio. Install the package using pip install bw_plex[audio] or bw_plex[all] 2020-01-12 22:01:26,170 :: bw_plex :: WARNING :: credits.py:17 :: Scanning for credits is not supported. Install the package with pip install bw_plex[all] or bw_plex[video] 2020-01-12 22:01:26,171 :: bw_plex :: WARNING :: credits.py:24 :: Extracting text from images is not supported. Install the package with pip install bw_plex[all] or bw_plex[video] Traceback (most recent call last): File “/mnt/mpathu/USER/src/bw-plex/bw_plex/credits.py”, line 28, in <module> import Image ModuleNotFoundError: No module named ‘Image’
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “/home/USER/bin/bw_plex”, line 11, in <module> load_entry_point(‘bw-plex’, ‘console_scripts’, ‘bw_plex’)() File “/mnt/mpathu/USER/src/bw-plex/bw_plex/cli.py”, line 23, in fake_main from bw_plex.plex import real_main File “/mnt/mpathu/USER/src/bw-plex/bw_plex/plex.py”, line 28, in <module> from bw_plex.credits import find_credits File “/mnt/mpathu/USER/src/bw-plex/bw_plex/credits.py”, line 30, in <module> from PIL import Image ModuleNotFoundError: No module named ‘PIL’
When I do pip install bw_plex[all]
it gives me errors like:
`Building wheels for collected packages: pocketsphinx Building wheel for pocketsphinx (setup.py) … error ERROR: Command errored out with exit status 1: command: /home/USER/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/pocketsphinx/setup.py’“'”‘; file=’“'”‘/mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/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 /mnt/mpathu/USER/.tmp/pip-wheel-2q4ow4y6 --python-tag cp36 cwd: /mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/pocketsphinx/ Complete output (7 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 unable to execute ‘swig’: No such file or directory error: command ‘swig’ failed with exit status 1
ERROR: Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
Installing collected packages: pocketsphinx, SpeechRecognition, Pillow, pytesseract, opencv-contrib-python
Running setup.py install for pocketsphinx … error
ERROR: Command errored out with exit status 1:
command: /home/USER/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/pocketsphinx/setup.py’“'”‘; file=’“'”‘/mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/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 /mnt/mpathu/USER/.tmp/pip-record-1ps_b0c2/install-record.txt --single-version-externally-managed --compile --install-headers /home/USER/include/site/python3.6/pocketsphinx
cwd: /mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/pocketsphinx/
Complete output (7 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
unable to execute ‘swig’: No such file or directory
error: command ‘swig’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/USER/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '”‘"’/mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/pocketsphinx/setup.py’“'”‘; file=’“'”‘/mnt/mpathu/USER/.tmp/pip-install-9wprn2yf/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 /mnt/mpathu/USER/.tmp/pip-record-1ps_b0c2/install-record.txt --single-version-externally-managed --compile --install-headers /home/USER/include/site/python3.6/pocketsphinx Check the logs for full command output.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
ModuleNotFoundError: No module named 'Image'
can be fixed by installingPillow
using pip.Try reinstalling bw_plex or use a proper fix for, just commenting out code could have unintended sideeffects.
As for your issue regarding the playback. We try to proxy the seek command to the server, but the server cant find the player to relay the command too. I dont know how to fix this.