Page 1 of 1

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

Posted: April 20th, 2008, 1:13 pm
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.

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

Posted: April 20th, 2008, 1:45 pm
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?

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

Posted: April 20th, 2008, 2:17 pm
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.

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

Posted: April 21st, 2008, 1:54 am
by shypike
I think it chokes on cache_limit = "".
I already changed the code so that the empty string is interpreted as 0.