SABnzbd 0.4.0 beta 2: AttributeError: 'NoneType' object has no attribute 'group'

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
User avatar
sander
Release Testers
Release Testers
Posts: 9261
Joined: January 22nd, 2008, 2:22 pm

SABnzbd 0.4.0 beta 2: AttributeError: 'NoneType' object has no attribute 'group'

Post by sander »

SAB stopped again in the middle of a download. I did a CTRL-C and a new start-up, and got only this:

Code: Select all

sander@ubuntu804:~/SABnzbd-0.4.0Beta2$ ./SABnzbd.py
Traceback (most recent call last):
  File "./SABnzbd.py", line 714, in <module>
    main()
  File "./SABnzbd.py", line 521, in main
    init_ok = sabnzbd.initialize(pause, clean_up)
  File "/home/sander/SABnzbd-0.4.0Beta2/sabnzbd/decorators.py", line 26, in newFunction
    return f(*args, **kw)
  File "/home/sander/SABnzbd-0.4.0Beta2/sabnzbd/__init__.py", line 431, in initialize
    cache_limit = int(from_units(cache_limit))
  File "/home/sander/SABnzbd-0.4.0Beta2/sabnzbd/misc.py", line 614, in from_units
    if m.group(2):
AttributeError: 'NoneType' object has no attribute 'group'
sander@ubuntu804:~/SABnzbd-0.4.0Beta2$
I'll do a fresh 'install' of SAB to see if that solves things.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd 0.4.0 beta 2: AttributeError: 'NoneType' object has no attribute 'gr

Post by shypike »

This means that your cache limit is very badly formatted (Section "misc", keyword "cache_limit" in the INI file).
Corrupt INI file? Can you save it and examine it?
User avatar
sander
Release Testers
Release Testers
Posts: 9261
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd 0.4.0 beta 2: AttributeError: 'NoneType' object has no attribute 'group'

Post by sander »

sander@ubuntu804:~$ grep cache oud-puntsabnzbd/sabnzbd.ini
cache_dir = cache
cache_limit = ""
sander@ubuntu804:~$

I suppose that looks good, doesn't it?

Anyway: I (re)mv'd .sabnzbd/ and the SAB 0.4.0 directory, started up good old 0.3.4 (and created a new ini), just to make sure downloads still work at all. So far so good. If two downloads go well with 0.3.4, I'll go back to 0.4.0 beta 2 to see how things go there.

Thanks.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd 0.4.0 beta 2: AttributeError: 'NoneType' object has no attribute 'gr

Post by shypike »

I think it chokes on cache_limit = "".
I already changed the code so that the empty string is interpreted as 0.
Post Reply