'NoneType' object has no attribute 'remove' [0.7.0B3]

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.
i814u2
Newbie
Newbie
Posts: 12
Joined: May 29th, 2012, 12:06 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by i814u2 »

Yes, sorry, I missed that post at first. I just sent it off.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by shypike »

Which provider are you using?
I have some trouble reproducing it.
I can see in the code where it goes wrong and I can prevent the crash.
But it would be great if I could actually reproduce it.
i814u2
Newbie
Newbie
Posts: 12
Joined: May 29th, 2012, 12:06 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by i814u2 »

newshosting for newsgroups, comcast for internet provider (if that matters for any reason).
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by shypike »

Don't happen to have that Usenet provider (there's just too many).
Even with deleting some stuff from the NZB I cannot reproduce.
It looks like you're using Linux.
Are you comfortable with editing Python source files?
If so, you could make the following change and see whether that helps.
Edit the file /usr/share/sabnzbdplus/sabnzbd/nzbstuff.py line 1009:
Original:

Code: Select all

    def add_parfile(self, parfile):
        self.files.append(parfile)
        parfile.extrapars.remove(parfile)
Change to:

Code: Select all

    def add_parfile(self, parfile):
        self.files.append(parfile)
        if parfile.extrapars:
            parfile.extrapars.remove(parfile)
Use spaces for indentation.
Then restart SABnzbd.
i814u2
Newbie
Newbie
Posts: 12
Joined: May 29th, 2012, 12:06 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by i814u2 »

I'll try that out.
Yes, I'm using Ubuntu (Server) 12.04.
I'll attempt the edit and let you know how it goes.
I assume I can edit the NZB to trim it down to only one set of files, correct? I'd prefer to not have to re-download all of the files again...
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by shypike »

While you're at it, it's probably best to remove the file nzbstuff.pyc, should it exist.
I think the problem is in episode 7. I trimmed it down too.
It could be that only the full file will trigger the problem, but there's no way of telling.

Actually this code would be better:

Code: Select all

    def add_parfile(self, parfile):
        self.files.append(parfile)
        if parfile.extrapars:
            parfile.extrapars.remove(parfile)
        else:
            logging.warning('PARFILE without EXTRAPARS %s', parfile.filename or parfile.subject)
That will tell you whether the bug would have triggered.
i814u2
Newbie
Newbie
Posts: 12
Joined: May 29th, 2012, 12:06 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by i814u2 »

I provided E07 as an example, but initially others gave me issues as well (E04 for sure, which was right near E07 in the initial log file).

I trimmed the NZB down to E07 and it fails to extract (not enough pars) but I haven't received the error. I'm running it again with you log warning just to be certain.
i814u2
Newbie
Newbie
Posts: 12
Joined: May 29th, 2012, 12:06 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by i814u2 »

Yep. That's the spot. When I added the logging, I received the following at the end of the download:

Code: Select all

2012-05-29 18:40:32,104	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol003+04.par2
2012-05-29 18:40:32,104	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol007+08.par2
2012-05-29 18:40:32,104	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol015+16.par2
2012-05-29 18:40:32,104	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol031+11.par2
2012-05-29 18:40:32,103	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol042+27.par2
2012-05-29 18:40:32,103	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol069+27.par2
2012-05-29 18:40:32,103	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol096+27.par2
2012-05-29 18:40:32,103	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol123+27.par2
2012-05-29 18:40:32,103	WARNING:	PARFILE without EXTRAPARS Boardwalk.Empire.S02E07.720p.HDTV.DD5.1.x264-CtrlHD.vol150+27.par2
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by shypike »

Can you email the full log file for an episode that gives these warnings?
Only a "Debug" log is useful.
This will tell me which articles are missing, which will help me in reconstructing events.
i814u2
Newbie
Newbie
Posts: 12
Joined: May 29th, 2012, 12:06 pm

Re: 'NoneType' object has no attribute 'remove' [0.7.0B3]

Post by i814u2 »

I'll work on that report. Since I had debugging still on, my normal scheduled downloads caused the log to roll over and I lost the previous warnings (thought I saved a copy of that one, but I just copied and pasted for my post).
I just re-ran the nzb and of course it didn't error this time. I'll email one as soon as I can get a log with the proper "issues" documented.

EDIT: I'm dumb. I forgot to manually check for old logs. I'll search through those and get the one with the proper info sent over to you.

EDIT 2: log file found, trimmed, and sent.
Post Reply