question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
OscarBarrettcommented, Jan 14, 2020

ModuleNotFoundError: No module named 'Image' can be fixed by installing Pillow using pip.

0reactions
Hellowlolcommented, Jan 22, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixes to All Plex Playback Errors S1001, Conversion Failed, etc.
The underlying causes of Plex playback errors are various and complex, such as wrong configuration, improper setup, unsupported codecs, etc.
Read more >
Plex: An Error Occurred While Attempting to Play Video
Go into settings on your Android device, Apps and select Plex. Stop the App then clear the cache. This fixed mine. Johan says....
Read more >
Fix Plex error: There was a problem playing this item
Solutions to the “problem playing this item” error on Plex · Delete old devices · Change transcoder settings · Downgrade the server ·...
Read more >
Fix Plex Playback Errors when Playing Videos on PC or Mac
Method #1 – Restart Plex Server. The first thing you need to do is to exit Plex server app on your Windows 10/11...
Read more >
I figured out the issue with playback errors on some movies ...
If I just select "Original" at the top instead, the movie/show will start playing immediately. Just hoping this helps if anyone else is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found