Sab unpack fails with some Python error

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
legoman666
Newbie
Newbie
Posts: 6
Joined: November 28th, 2012, 7:59 pm

Sab unpack fails with some Python error

Post by legoman666 » June 10th, 2019, 8:55 pm

Downloads fine. No missing parts

Code: Select all

2019-06-10 21:47:17,240::INFO::[newsunpack:265] 7za starting on xxx
2019-06-10 21:47:17,240::INFO::[newsunpack:947] Starting extract on 7zip set/file: xxx.7z 
2019-06-10 21:47:17,240::ERROR::[postproc:537] Post Processing Failed for xxx (see logfile)
2019-06-10 21:47:17,240::INFO::[postproc:538] Traceback: 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/postproc.py", line 382, in process_job
    unpack_error, newfiles = unpack_magic(nzo, workdir, tmp_workdir_complete, flag_delete, one_folder, (), (), (), (), ())
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 266, in unpack_magic
    error, newf = unseven(nzo, workdir, workdir_complete, dele, one_folder, new_sevens)
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 955, in unseven
    res, new_files_set, msg = seven_extract(nzo, seven, extensions, extraction_path, one_folder, delete)
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 983, in seven_extract
    fail, new_files, msg = seven_extract_core(sevenset, extensions, extraction_path, one_folder, delete, password)
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 1034, in seven_extract_core
    stup, need_shell, command, creationflags = build_command(command)
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack.py", line 2006, in build_command
    if command[0].endswith('.py'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Gives the same error for all files. Mint 18.3. Sab 2.3.9RC1

What is "endswith"?

User avatar
sander
Release Testers
Release Testers
Posts: 6650
Joined: January 22nd, 2008, 2:22 pm

Re: Sab unpack fails with some Python error

Post by sander » June 11th, 2019, 4:15 am

endswith means ends_with ... so a check on the last characters of a strings. In this case: command[0].endswith('.py') ... so does it end on '.py' ... in other words: is it a python script.

As this happens in postproc.py ... what kind of post-processing script did you specify?

Puzzled
Newbie
Newbie
Posts: 40
Joined: September 2nd, 2017, 3:02 am

Re: Sab unpack fails with some Python error

Post by Puzzled » June 11th, 2019, 10:50 am

I don't think it found the 7zip executable. Is 7z or 7za in /usr/bin/?

User avatar
safihre
Administrator
Administrator
Posts: 3250
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Sab unpack fails with some Python error

Post by safihre » June 11th, 2019, 12:12 pm

In that case there will have been a startup error, was there?

legoman666
Newbie
Newbie
Posts: 6
Joined: November 28th, 2012, 7:59 pm

Re: Sab unpack fails with some Python error

Post by legoman666 » June 24th, 2019, 9:32 pm

Sorry for the long delay in replying, been out of town a lot.

There is no post processing script. The download was in the "TV" category, but all that entails is a specific unpack folder (which isn't full).

7zip is not missing as far as I can tell. I sort of remember setting up a multicore 7z bin a while back, maybe that's it? I'll look in to it more, been a while since I set it up....

Post Reply