ComicRN from NZBget

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
jedimole
Posts: 139
Joined: Sat Jan 02, 2016 9:19 pm

ComicRN from NZBget

Post by jedimole »

The extension script is not running properly from within NZBget now it seems and I'm wondering if I really need it all? If I let the comics download and then get run via the post processing in mylar its ok. The post processing script when it runs in NZBget, is where its failing. I'm 99% sure I have new py in the nzbget directory, and the autoprocess file appears to be unchanged?


Am I missing something simple, is nzbget the real issue?
abnersnell
Posts: 3
Joined: Tue May 01, 2018 7:09 am

Re: ComicRN from NZBget

Post by abnersnell »

Exact same issue here. While the end result is successful with Mylar, NZBGet shows pp-failure in the history:

ERROR Tue May 01 2018 01:38:20 Post-process-script ComicRN.py for failed (terminated with unknown status)
INFO Tue May 01 2018 01:38:20 ComicRN: AttributeError: 'list' object has no attribute 'split'
INFO Tue May 01 2018 01:38:20 ComicRN: if any("Post Processing SUCCESSFUL" in s for s in result.split('\n')):
INFO Tue May 01 2018 01:38:20 ComicRN: File "/config/scripts/autoProcessComics.py", line 96, in processIssue
INFO Tue May 01 2018 01:38:20 ComicRN: result = autoProcessComics.processIssue(os.environ['NZBPP_DIRECTORY'], os.environ['NZBPP_NZBNAME'], failed=failit, comicrn_version=comicrn_version)
INFO Tue May 01 2018 01:38:20 ComicRN: File "/config/scripts/ComicRN.py", line 49, in <module>
INFO Tue May 01 2018 01:38:20 ComicRN: Traceback (most recent call last):
INFO Tue May 01 2018 01:38:20 ComicRN: Post Processing SUCCESSFUL!
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicRN from NZBget

Post by evilhero »

Make sure you're using the newest autoProcessComics.py (it will say version 2.02 in the log when it starts to do the autoprocessing within the mylar log). You can also open up the autoProcessComics.py file and the value for the apc_version should be 2.02 - if it's not, you need to copy it to the location where your scripts are.

Also, pasting just the error isn't really helpful - if you can paste the context (ie. the nzblog showing the start of the post-processing to the failure) it might help to pinpoint what's occuring.
abnersnell
Posts: 3
Joined: Tue May 01, 2018 7:09 am

Re: ComicRN from NZBget

Post by abnersnell »

Using 2.02.

Tue May 01 2018 12:40:17 INFO Collection Venomized.004.2018.Digital.Zone-Empire added to queue
Tue May 01 2018 12:40:17 INFO Reordering files for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:19 INFO Successfully downloaded Venomized.004.2018.Digital.Zone-Empire/Venomized 004 (2018) (Digital) (Zone-Empire).cbr
Tue May 01 2018 12:40:19 INFO Collection Venomized.004.2018.Digital.Zone-Empire completely downloaded
Tue May 01 2018 12:40:19 INFO Queueing Venomized.004.2018.Digital.Zone-Empire for post-processing
Tue May 01 2018 12:40:19 INFO Checking renamed files for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:19 INFO No renamed files found for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:19 INFO Checking renamed archive files for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:19 INFO No renamed archive files found for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:19 INFO Nothing to unpack for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:20 INFO Cleaning up Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:20 INFO Nothing to cleanup for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:20 INFO Moving completed files for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:20 INFO Moving file Venomized 004 (2018) (Digital) (Zone-Empire).cbr to /downloads/nzbget/completed/mylar/Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:20 INFO Move for Venomized.004.2018.Digital.Zone-Empire successful
Tue May 01 2018 12:40:20 INFO Executing post-process-script ComicRN.py for Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:28 INFO ComicRN: Requests module not found on system. I'll revert so this will work, but you probably should install
Tue May 01 2018 12:40:28 INFO ComicRN: requests to bypass this in the future (ie. pip install requests)
Tue May 01 2018 12:40:28 INFO ComicRN: Loading config from /config/scripts/autoProcessComics.cfg
Tue May 01 2018 12:40:28 INFO ComicRN: Opening URL: http://mylar:8090/api?apikey=63f31a8f88 ... e&failed=0
Tue May 01 2018 12:40:28 INFO ComicRN: nzb name: Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:28 INFO ComicRN: nzb folder: /downloads/nzbget/completed/mylar/Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:28 INFO ComicRN: nzbname: Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:28 INFO ComicRN: Issue Year: 2018
Tue May 01 2018 12:40:28 INFO ComicRN: Publisher: Marvel
Tue May 01 2018 12:40:28 INFO ComicRN: Series: Venomized
Tue May 01 2018 12:40:28 INFO ComicRN: Year: 2018
Tue May 01 2018 12:40:28 INFO ComicRN: Comic Location: /comics/Venomized (2018)
Tue May 01 2018 12:40:28 INFO ComicRN: Comic Version: None
Tue May 01 2018 12:40:28 INFO ComicRN: No version # found for series - tag will not be available for renaming.
Tue May 01 2018 12:40:28 INFO ComicRN: Metatagging enabled - proceeding...
Tue May 01 2018 12:40:28 INFO ComicRN: Sucessfully wrote metadata to .cbz - Continuing..
Tue May 01 2018 12:40:28 INFO ComicRN: Original Filename: Venomized 004 (2018) (Digital) (Zone-Empire).cbr [.cbz]
Tue May 01 2018 12:40:28 INFO ComicRN: New Filename: Venomized 004 (2018)
Tue May 01 2018 12:40:28 INFO ComicRN: Source:/config/mylar/cache/mylar_vSqQHr/Venomized 004 (2018) (Digital) (Zone-Empire).cbz
Tue May 01 2018 12:40:28 INFO ComicRN: Destination:/comics/Venomized (2018)/Venomized 004 (2018).cbz
Tue May 01 2018 12:40:28 INFO ComicRN: [move] /config/mylar/cache/mylar_vSqQHr/Venomized 004 (2018) (Digital) (Zone-Empire).cbz - to - /comics/Venomized (2018)/Venomized 004 (2018).cbz
Tue May 01 2018 12:40:28 INFO ComicRN: Removed temporary directory : /downloads/nzbget/completed/mylar/Venomized.004.2018.Digital.Zone-Empire
Tue May 01 2018 12:40:28 INFO ComicRN: Removed temporary directory : /config/mylar/cache/mylar_vSqQHr
Tue May 01 2018 12:40:28 INFO ComicRN: Post Processing SUCCESSFUL!
Tue May 01 2018 12:40:28 INFO ComicRN: Traceback (most recent call last):
Tue May 01 2018 12:40:28 INFO ComicRN: File "/config/scripts/ComicRN.py", line 49, in <module>
Tue May 01 2018 12:40:28 INFO ComicRN: result = autoProcessComics.processIssue(os.environ['NZBPP_DIRECTORY'], os.environ['NZBPP_NZBNAME'], failed=failit, comicrn_version=comicrn_version)
Tue May 01 2018 12:40:28 INFO ComicRN: File "/config/scripts/autoProcessComics.py", line 96, in processIssue
Tue May 01 2018 12:40:28 INFO ComicRN: if any("Post Processing SUCCESSFUL" in s for s in result.split('\n')):
Tue May 01 2018 12:40:28 INFO ComicRN: AttributeError: 'list' object has no attribute 'split'
Tue May 01 2018 12:40:28 ERROR Post-process-script ComicRN.py for Venomized.004.2018.Digital.Zone-Empire failed (terminated with unknown status)
Tue May 01 2018 12:40:28 INFO Collection Venomized.004.2018.Digital.Zone-Empire added to history
abnersnell
Posts: 3
Joined: Tue May 01, 2018 7:09 am

Re: ComicRN from NZBget

Post by abnersnell »

Looks like an issue is already opened. #1921
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicRN from NZBget

Post by evilhero »

It's the same, but different.

That issue was pertaining to a problem with the workflow that happens when a user has the requests library installed. Yours isn't using requests, so it's going an alternate route in the workflow - have you tried to install requests like the log says?

What version of nzbget are you using and on what OS?
capGrundy
Posts: 51
Joined: Thu Nov 09, 2017 12:25 am

Re: ComicRN from NZBget

Post by capGrundy »

I'm getting errors in the same section, but different. I just updated my auto to 2.02

INFO Thu May 10 2018 18:03:10 Collection Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire added to history
ERROR Thu May 10 2018 18:03:10 Post-process-script ComicRN.py for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire failed (terminated with unknown status)
INFO Thu May 10 2018 18:03:10 ComicRN: ConfigParser.NoOptionError: No option 'apikey' in section: 'Mylar'
INFO Thu May 10 2018 18:03:10 ComicRN: raise NoOptionError(option, section)
INFO Thu May 10 2018 18:03:10 ComicRN: File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
INFO Thu May 10 2018 18:03:10 ComicRN: apikey = config.get("Mylar", "apikey")
INFO Thu May 10 2018 18:03:10 ComicRN: File "/config/scripts/autoProcessComics.py", line 40, in processIssue
INFO Thu May 10 2018 18:03:10 ComicRN: result = autoProcessComics.processIssue(os.environ['NZBPP_DIRECTORY'], os.environ['NZBPP_NZBNAME'], failed=failit, comicrn_version=comicrn_version)
INFO Thu May 10 2018 18:03:10 ComicRN: File "/config/scripts/ComicRN.py", line 49, in <module>
INFO Thu May 10 2018 18:03:10 ComicRN: Traceback (most recent call last):
INFO Thu May 10 2018 18:03:10 ComicRN: Loading config from /config/scripts/autoProcessComics.cfg
INFO Thu May 10 2018 18:03:10 ComicRN: requests to bypass this in the future (ie. pip install requests)
INFO Thu May 10 2018 18:03:10 ComicRN: Requests module not found on system. I'll revert so this will work, but you probably should install
INFO Thu May 10 2018 18:03:10 Executing post-process-script ComicRN.py for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:09 Nothing to cleanup for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:09 Cleaning up Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:09 Nothing to unpack for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:08 No renamed archive files found for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:08 Checking renamed archive files for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:07 No renamed files found for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:07 Checking renamed files for Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:03:05 Queueing Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire for post-processing
INFO Thu May 10 2018 18:03:05 Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire returned from history back to download queue
INFO Thu May 10 2018 18:03:05 Post-processing again Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire
INFO Thu May 10 2018 18:00:13 Collection Justice.League.-.No.Justice.01.of.04.2018.2.covers.Digital.Zone-Empire added to history
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicRN from NZBget

Post by evilhero »

AutoProcessComics.py is at 2.04 as of yesterday (development build).

The 2.x autoProcessComics removed the user/password requirement from the autoProcessComics.cfg file and replaced it with apikey. You have to make sure that you have an apikey for mylar and that the API is enabled (configuration / Web Interface tab).
Post Reply