Page 1 of 1

Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 1st, 2009, 6:01 pm
by Alexandre
Like i said i tried adding many and many nzb but it didn't work.

Hi, first of all i need to say that i add 0.4.12 that work fluently.
Second point, i did like you said if there was any probleme to remove all previous files and make a clean install i did that.

Now maybe it's another dumb thing i did'nt read and sorry for asking then.

Thank you for reading me.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 4:52 am
by biophon
I don't have any problems here. What happens on your end?

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 5:07 am
by kabiki
I have problems too. The log says:

Fetching NZB for Newzbin report #5238255
Successfully fetched report 5238255 - Andre Rieu - You'll Never Walk Alone (2009) (cat=Music) (Andre Rieu - You'll Never Walk Alone (2009).nzb)
Error while adding SABnzbd_nzo_WQ_Jzs, removing
/Users/kabiki/Library/Application Support/SABnzbd/cache/SABnzbd_nzo_WQ_Jzs removed

I have mac os x 10.6 and 0.5 beta 1. No problems with 0.4.12.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 5:34 am
by kabiki
I have a more extended log now:

2009-12-02 11:25:07,430::DEBUG::[newzbin:161] Adding msgid 5238215 to the queue
2009-12-02 11:25:07,431::DEBUG::[newzbin:183] Popping msgid 5238215
2009-12-02 11:25:07,432::INFO::[newzbin:230] Fetching NZB for Newzbin report #5238215
2009-12-02 11:25:08,117::INFO::[newzbin:328] Successfully fetched report 5238215 - Helene Fischer - So Wie Ich Bin (2009) (cat=Music) (Helene Fischer - So Wie Ich Bin (2009).nzb)
2009-12-02 11:25:08,118::DEBUG::[nzbstuff:1183] Convert newzbin-cat "Music" to user-cat "music"
2009-12-02 11:25:08,118::DEBUG::[misc:76] Job gets options 3
2009-12-02 11:25:08,118::DEBUG::[misc:96] Job gets priority undefined
2009-12-02 11:25:08,119::INFO::[nzbqueue:121] Regenerating item: SABnzbd_nzo_5binWw
2009-12-02 11:25:08,121::ERROR::[nzbqueue:150] Error while adding SABnzbd_nzo_5binWw, removing
2009-12-02 11:25:08,121::DEBUG::[nzbqueue:151] Traceback:
Traceback (most recent call last):
  File "sabnzbd/nzbqueue.pyc", line 134, in insert_future
  File "sabnzbd/nzbstuff.pyc", line 543, in __init__
  File "xml/sax/__init__.pyc", line 49, in parseString
  File "xml/sax/expatreader.pyc", line 107, in parse
  File "xml/sax/xmlreader.pyc", line 123, in parse
  File "xml/sax/expatreader.pyc", line 207, in feed
  File "xml/sax/expatreader.pyc", line 381, in external_entity_ref
  File "xml/sax/saxutils.pyc", line 298, in prepare_input_source
  File "urllib.pyc", line 87, in urlopen
  File "urllib.pyc", line 206, in open
  File "urllib.pyc", line 317, in open_http
  File "urllib.pyc", line 1398, in proxy_bypass
  File "urllib.pyc", line 1367, in proxy_bypass_macosx_sysconf
UnboundLocalError: local variable 'hostIP' referenced before assignment
2009-12-02 11:25:08,121::DEBUG::[articlecache:122] Purgable articles -> []
2009-12-02 11:25:08,122::INFO::[__init__:686] /Users/kabiki/Library/Application Support/SABnzbd/cache/SABnzbd_nzo_5binWw removed

Hope that helps!

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 6:47 am
by rAf
I've got the same issue when adding a newzbin report id on url field in Plush on Windows 7.
Filled ticket #346.

Thanks for reporting !

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 6:53 am
by shypike
Do either of you have a proxy server configured in the operating system?
(or in IE8 for Wndows)

I have received one report from someone who had a non-functioning
proxy server configured in IE8 and somehow the Python runtime
library insisted on using it.

The reason my suspicion is raised is that the crash occurs while
processing the NZB file after it has been downloaded from newzbin.
What happened in the above scenario is that Python's XML parser
want to get the DTD file from newzbin (this is the file formally describing the NZB format).
It tries to use the configured proxy server and crashes if it doesn't work.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 7:43 am
by shypike
As a check, could you modify an NZB file?
Remove this line from the file:

Code: Select all

<!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.0//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.0.dtd">

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 8:22 am
by rAf
Oups tested a little fast for me, my login/pass on newzbin was bad  :P
Sorry...
I've also tested on OSX and it works for me with last svn rev...
Maybe a proxy issue...

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 10:39 am
by MaFL
shypike wrote: As a check, could you modify an NZB file?
Remove this line from the file:

Code: Select all

<!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.0//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.0.dtd">
After that it will work.

Running an ad blocker (http://glimmerblocker.org). It works as a proxy. Same problem.
It works if the proxy is turned off or DOCTYPE line is removed.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 12:09 pm
by kabiki
shypike wrote: As a check, could you modify an NZB file?
Remove this line from the file:

Code: Select all

<!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.0//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.0.dtd">
Confirmed working when removing that line in the nzb or if I turn off Glimmerblocker and Hotspot Shield.

Thanks!

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 12:53 pm
by Alexandre
Well not using a proxy but firefox 3.5.5 with adbock.

It work like all other without the line but kinda an annoying thing to do. I tried without adblock in firefox too but didn't work.
I go back 0.4.12 wich is already really good.

Thanks for replying.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 3:03 pm
by shypike
The main problem is that SABnzbd is always trying to read a file from newzbin.com.
This is the so-called DTD file.
It isn't needed, but the XML library we picked for 0.5.0
insists on reading it anyway and also uses a troublesome function for it.
(One that obviously has problems with any proxy-like configuration).

We need to implement a work-around for this.
Will be done for Beta2.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 2nd, 2009, 6:59 pm
by shypike
Found a work-around.
Need to do some additional testing, but this will be fixed in Beta2.

Re: Not possible to add nzb on mac os x 10.6 (0.5 beta 1)

Posted: December 3rd, 2009, 7:43 am
by MaFL
Tnx!!