-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
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
Python 3 bug in postSonarr.py? #386
Comments
Looks like your python3 installation is missing the Thanks for pointing this out though, I'll update the readme to reflect this being required as well. |
I have installed requests-cache and I am now no longer getting the prevision error. Thank you for your help. However I am now getting a different error and PLEX is not getting notified to update. Please see the output of info.log below. Like before if I change back to python2 I no longer get this error. I am using "PLEX home" so I am using the token option. I double check and everything in autoProcess.ini looks correct. Not sure if this has anything to do with it or not. Is this a case of me not knowing what I am doing again? Thank you for your help 2015-12-29 22:06:09 - SonarrPostConversion - INFO - Sonarr extra script post processing started. |
Looks like another python2 to 3 bug with urllib. Just pushed an update that should resolve the issue. Give it a try. |
I just tested it and everything look to be working correctly. Thank you for all your help On Wed, Dec 30, 2015 at 7:29 AM, Michael Higgins notifications@github.com
|
I believe I have found a Python 3 bug. I am using Sonarr with your script on and Arch Linux install. I have followed the instructions in the README.md file. The outputted mp4s are not being tagged and I get the following info in the info.log; see below.
When I change the first line of postSonarr.py from #!/usr/bin/env python to #!/usr/bin/env python2 everything works fine. In Arch Linux 'python' defaults to python 3.
Let me know if there is any other info that could help you or if this is simply me not knowing what I am doing.
Cheers
2015-12-28 12:18:20 - SonarrPostConversion - INFO - Sonarr extra script post processing started.
2015-12-28 12:18:20 - readSettings - WARNING - Audio bitrate was invalid, defaulting to 256 per channel.
2015-12-28 12:18:20 - SonarrPostConversion - INFO - Processing /media/tv/Blindspot/Season 1/Blindspot - S01E02 - A Stray Howl WEBDL-1080p.mkv.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Reading video stream.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Video codec detected: h264.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Pix Fmt: yuv420p.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Reading audio streams.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Audio detected for stream #1: ac3 [eng].
2015-12-28 12:18:20 - mkvtomp4 - INFO - Creating audio stream 0 from source stream 1.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Reading subtitle streams.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Subtitle detected for stream #2: srt [eng].
2015-12-28 12:18:20 - mkvtomp4 - INFO - Creating subtitle stream 0 from source stream 2.
2015-12-28 12:18:20 - mkvtomp4 - INFO - Starting conversion.
2015-12-28 12:18:31 - mkvtomp4 - INFO - /media/tv/Blindspot/Season 1/Blindspot - S01E02 - A Stray Howl WEBDL-1080p.mp4 created.
2015-12-28 12:18:32 - SonarrPostConversion - INFO - Tagging /media/tv/Blindspot/Season 1/Blindspot - S01E02 - A Stray Howl WEBDL-1080p.mkv with ID 295647 season 1 episode 2.
2015-12-28 12:18:32 - tvdb_mp4 - ERROR - Failed to connect to TVDB, trying again in 20 seconds.
Traceback (most recent call last):
File "/var/lib/sonarr/mp4_automator/tvdb_mp4.py", line 26, in init
self.tvdb_show = Tvdb(interactive=False, cache=False, banners=True, actors=True, forceConnect=True, language=language)
File "/var/lib/sonarr/mp4_automator/tvdb_api/tvdb_api.py", line 433, in init
import requests_cache
ImportError: No module named 'requests_cache'
2015-12-28 12:18:52 - tvdb_mp4 - ERROR - Failed to connect to TVDB, trying again in 20 seconds.
Traceback (most recent call last):
File "/var/lib/sonarr/mp4_automator/tvdb_mp4.py", line 26, in init
self.tvdb_show = Tvdb(interactive=False, cache=False, banners=True, actors=True, forceConnect=True, language=language)
File "/var/lib/sonarr/mp4_automator/tvdb_api/tvdb_api.py", line 433, in init
import requests_cache
ImportError: No module named 'requests_cache'
2015-12-28 12:19:12 - tvdb_mp4 - ERROR - Failed to connect to TVDB, trying again in 20 seconds.
Traceback (most recent call last):
File "/var/lib/sonarr/mp4_automator/tvdb_mp4.py", line 26, in init
self.tvdb_show = Tvdb(interactive=False, cache=False, banners=True, actors=True, forceConnect=True, language=language)
File "/var/lib/sonarr/mp4_automator/tvdb_api/tvdb_api.py", line 433, in init
import requests_cache
ImportError: No module named 'requests_cache'
2015-12-28 12:19:32 - tvdb_mp4 - INFO - Tagging file: /media/tv/Blindspot/Season 1/Blindspot - S01E02 - A Stray Howl WEBDL-1080p.mp4.
The text was updated successfully, but these errors were encountered: