Page 1 of 1

Problem retrieving nzb from newzbin using https

Posted: April 8th, 2008, 1:12 pm
by gigot
Hi there,

Well first of all thanks you all dear developers for all the time and effort you put in bringing us this very nice usenet grabber packed with so much powerful features.

I'm having a problem retrieving nzb from newzbin

Code: Select all

::1 - - [08/Apr/2008:19:39:41] "GET /sabnzbd/addID?id=XXXXX&pp=3&script=Default HTTP/1.1" 302 - "http://localhost:8080/sabnzbd/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13"
::1 - - [08/Apr/2008:19:39:41] "GET /sabnzbd/ HTTP/1.1" 200 - "http://localhost:8080/sabnzbd/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13"
2008-04-08 19:39:41,442::WARNING::[newzbin] Problem accessing Newzbin server, wait 5 min.
I figured out that replacing httplib.HTTPSConnection with httplib.HTTPConnection in newzbin.py solved the problem

Now I'm happy again but maybe this problem deserves to be reported, and I certainly rather have my nzb retrieved using https.

I'm using Mac Os 10.5.2, all dependencies were installed with macports except for cherrypy

par2 @0.4_2+darwin_9 (active)
py25-cheetah @2.0.1_0 (active)
py25-hashlib @2.5.2_0 (active)
py25-zlib @2.5.2_0 (active)
python25 @2.5.2_1+darwin_9 (active)
unrar @3.7.8_0 (active)

If you need more informations/test from me, I'd be happy to help.

Re: Problem retrieving nzb from newzbin using https

Posted: April 8th, 2008, 1:18 pm
by shypike
I'm not sure what's the matter, since I'm not the OSX supporter.
However, I do miss some modules in your list.

You need also yEnc and PyOpenSSL.

I hope our OSX people will have something so say about this.

Re: Problem retrieving nzb from newzbin using https

Posted: April 8th, 2008, 1:50 pm
by gigot
I forgot to mention that I also installed yenc manually.

PyOpenSSL is unfortunately not packaged with python 2.5 in macports.

However, I've juste installed the port py25-socket-ssl and now everything works fine :).

I've also noticed that there is now a py25-cherrypy package.

So to sum it up if you want to use sabnzbd+ with python 2.5 and macports you'll need :

py25-cheetah @2.0.1_0 (active)
py25-hashlib @2.5.2_0 (active)
py25-socket-ssl @2.5.2_0 (active)
py25-zlib @2.5.2_0 (active)
python25 @2.5.2_1+darwin_9 (active)
py25-cherrypy
yenc0.3 will have to be installed manually
PyOpenSSL will have to be installed manually (I guess it is optionnal if you don't use SSL to connect to your nntp server)

If you go with Python 2.4, every dependencies should be available as ports.

Many thanks for the hint shypike.

Re: Problem retrieving nzb from newzbin using https

Posted: April 8th, 2008, 4:31 pm
by shypike
We embed CherryPy2.2.1 now.
CherryPy comes in two incompatible flavours releases: 2.x.x and 3.x.x The trouble is, you can install only one with apt-get.
(Serious error by the CherryPy developers).