Python 2.5.5 error SABnzbd 0.5RC

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.
Post Reply
dude
Release Testers
Release Testers
Posts: 6
Joined: April 2nd, 2008, 2:38 am
Location: PARIS

Python 2.5.5 error SABnzbd 0.5RC

Post by dude »

Hello

My configuration : QNAP TS-239 Pro (1.6ghz atom) 512ram

Python 2.5.5 (r255:77872, Feb  1 2010, 15:03:30)

since iv update python i have some error :)

Code: Select all

[/share/Qdownload/SABnzbd-0.5.0RC5] # python2.5 SABnzbd.py
Traceback (most recent call last):
  File "SABnzbd.py", line 24, in <module>
    import logging.handlers
  File "/opt/lib/python2.5/logging/handlers.py", line 30, in <module>
    import sys, logging, socket, types, os, string, cPickle, struct, time, glob
ImportError: /share/MD0_DATA/.qpkg/Python/lib/python2.5/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_DecodeRawUnicodeEscape
thx all
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by shypike »

Looks like an inconsistent Python setup.
Maybe you should (also) complain to the QNAP package creators?
dude
Release Testers
Release Testers
Posts: 6
Joined: April 2nd, 2008, 2:38 am
Location: PARIS

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by dude »

hello

i just remove the python2.5.2 package from QNAP and install the version 2.5.5 via ipkg

and now it work but it cant find openssl but i know it here i use openssl for nzbget.

Code: Select all

[/share/Qdownload/SABnzbd-0.5.0RC6] # python2.5 SABnzbd.py         
2010-02-05 16:39:02,357::INFO::[SABnzbd:945] --------------------------------
2010-02-05 16:39:02,359::INFO::[SABnzbd:946] SABnzbd.py-0.5.0RC6 (rev=3279)
2010-02-05 16:39:02,360::INFO::[SABnzbd:956] Platform = posix
2010-02-05 16:39:02,361::INFO::[SABnzbd:957] Python-version = 2.5.5 (r255:77872, Feb  1 2010, 15:03:30) 
[GCC 4.2.1]
2010-02-05 16:39:02,468::INFO::[__init__:664] Loading data for bookmarks.sab from /root/.sabnzbd/cache/bookmarks.sab
2010-02-05 16:39:02,469::INFO::[__init__:695] /root/.sabnzbd/cache/bookmarks.sab removed
2010-02-05 16:39:02,471::INFO::[__init__:664] Loading data for rss_data.sab from /root/.sabnzbd/cache/rss_data.sab
2010-02-05 16:39:02,473::INFO::[__init__:664] Loading data for bytes9.sab from /root/.sabnzbd/cache/bytes9.sab
2010-02-05 16:39:02,475::INFO::[__init__:664] Loading data for queue9.sab from /root/.sabnzbd/cache/queue9.sab
2010-02-05 16:39:02,476::INFO::[postproc:138] Loading postproc queue
2010-02-05 16:39:02,478::INFO::[__init__:664] Loading data for postproc1.sab from /root/.sabnzbd/cache/postproc1.sab
2010-02-05 16:39:02,479::INFO::[__init__:695] /root/.sabnzbd/cache/postproc1.sab removed
2010-02-05 16:39:02,482::INFO::[__init__:664] Loading data for watched_data.sab from /root/.sabnzbd/cache/watched_data.sab
2010-02-05 16:39:02,484::INFO::[downloader:327] Resuming
2010-02-05 16:39:02,514::INFO::[__init__:248] All processes started
2010-02-05 16:39:02,515::INFO::[SABnzbd:265] Web dir is /share/MD0_DATA/Qdownload/SABnzbd-0.5.0RC6/interfaces/smpl
2010-02-05 16:39:02,555::INFO::[SABnzbd:1010] Starting SABnzbd.py-0.5.0RC6
2010-02-05 16:39:02,556::INFO::[nzbqueue:92] Saving queue
2010-02-05 16:39:02,559::INFO::[__init__:643] Saving data for queue9.sab in /root/.sabnzbd/cache/queue9.sab
2010-02-05 16:39:02,561::INFO::[dirscanner:367] Dirscanner starting up
2010-02-05 16:39:02,564::INFO::[__init__:643] Saving data for bytes9.sab in /root/.sabnzbd/cache/bytes9.sab
2010-02-05 16:39:02,565::INFO::[SABnzbd:382] _yenc module... found!
2010-02-05 16:39:02,567::INFO::[urlgrabber:103] URLGrabber starting up
2010-02-05 16:39:02,568::INFO::[__init__:643] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2010-02-05 16:39:02,571::INFO::[__init__:643] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2010-02-05 16:39:02,569::INFO::[SABnzbd:390] par2 binary... found (/opt/bin/par2)
2010-02-05 16:39:02,573::INFO::[SABnzbd:398] unrar binary... found (/opt/bin/unrar)
2010-02-05 16:39:02,574::INFO::[__init__:643] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2010-02-05 16:39:02,576::INFO::[SABnzbd:403] unzip binary... found (/usr/bin/unzip)
2010-02-05 16:39:02,578::INFO::[postproc:133] Saving postproc queue
2010-02-05 16:39:02,579::INFO::[SABnzbd:411] nice binary... NOT found!
2010-02-05 16:39:02,580::INFO::[__init__:643] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2010-02-05 16:39:02,582::INFO::[SABnzbd:415] ionice binary... NOT found!
2010-02-05 16:39:02,583::INFO::[SABnzbd:420] pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)
2010-02-05 16:39:02,587::INFO::[SABnzbd:1108] Starting web-interface on 127.0.0.1:8080
2010-02-05 16:39:02,590::INFO::[_cplogging:55] [05/Feb/2010:16:39:02] ENGINE Bus STARTING
2010-02-05 16:39:02,599::INFO::[_cplogging:55] [05/Feb/2010:16:39:02] ENGINE Started monitor thread '_TimeoutMonitor'.
2010-02-05 16:39:02,804::INFO::[_cplogging:55] [05/Feb/2010:16:39:02] ENGINE Serving on 127.0.0.1:8080
2010-02-05 16:39:02,805::INFO::[_cplogging:55] [05/Feb/2010:16:39:02] ENGINE Bus STARTED
2010-02-05 16:39:02,806::INFO::[misc:489] Lauching browser with http://localhost:8080/sabnzbd
thx
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by shypike »

You miss PyOpenSSL !
Vranac
Release Testers
Release Testers
Posts: 7
Joined: January 12th, 2009, 5:05 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by Vranac »

Hello

I've exact the same error on a Synology NAS.
I've updated to the latest python 2.5 version (python25_2.5.5-1)

After the update, the SSL function in sab isn't working ([SABnzbd:420] pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional))
All other python modules works fine. All python modules are in their proper locations (like before the update)
A clean uninstalll / install of python and the modules doesn't help.
A symlink doesn't help.

After downgrading to the previous python version, sab works again.

Greetz / Thx
Vr
dude
Release Testers
Release Testers
Posts: 6
Joined: April 2nd, 2008, 2:38 am
Location: PARIS

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by dude »

i tried with python2.6 it find openssl but not all dependency are available with this version.

i do not understand why sab find pyopenssl with python2.6 and not with 2.5 ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by shypike »

The finding is done by Python itself.
We just say

Code: Select all

from OpenSSL import SSL
Should an import error occur, we know that SSL support is not present.

You'll probably have to tweak the Python installation.
Vranac
Release Testers
Release Testers
Posts: 7
Joined: January 12th, 2009, 5:05 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by Vranac »

Hmm...How i suspected..
It seems to be a bug in the python binary / source code itself.
I compared the python files (2.5.4 / 2.5.5) with winmerge. No differences in config & similar files.
Vranac
Release Testers
Release Testers
Posts: 7
Joined: January 12th, 2009, 5:05 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by Vranac »

Another testing

Try to build the python binary from source (the oldschool way :-) )
I tried also different ./configure parameters.

Python 2.5.4 on Synology: OpenSSL works
Python 2.5.4 on openSUSE: OpenSSL works
Python 2.5.4 on ubuntu: OpenSSL works
Python 2.5.5 on Synology: pyOpenSSL... NOT found
Python 2.5.5 on openSUSE: pyOpenSSL... NOT found
Python 2.5.5 on ubuntu: pyOpenSSL... NOT found

It seems to me the OpenSSL support in Python 2.5.5 for Unix / POSIX systems is not working
elmer91
Newbie
Newbie
Posts: 12
Joined: December 6th, 2009, 8:28 am

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by elmer91 »

I have now exactly the same problem...
Synology DS-207+ with IPKG running python 2.5

I have made a (stupid) upgrade to pyhton 2.5.5: same consequences, no more SSL !

Simple workaround (for the time being): use stunnel and configure SAB without SSL

It works well.
Elmer
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by shypike »

I sympathise.
OpenSSL and Python is difficult relationship.
We've had quite some trouble to get it working with Windows Vista/7.
elmer91
Newbie
Newbie
Posts: 12
Joined: December 6th, 2009, 8:28 am

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by elmer91 »

It was a problem of unicode (UCS4 vs UCS2)

Latest Python package was build with UCS2, previous one was with UCS4.
Other python modules (like pyOpenSSL were build with UCS4)

I have filled a bug to the NSLU2 IPKG team.
They are on the way to rebuild packages.

New python 2.5.5 package should be built again with UCS4. It should solve the python/SSL problem for system based on IPKG (dude, Vranac and mine).

Please try it when available.
Elmer.

PS: python25-2.5.5-2 (UCS4) is now available for syno-x07, other targets will be updated soon.
dude
Release Testers
Release Testers
Posts: 6
Joined: April 2nd, 2008, 2:38 am
Location: PARIS

Re: Python 2.5.5 error SABnzbd 0.5RC

Post by dude »

hello since the last python update all is good :)

juste need to update to python 2.5.5-2 et voila

by
Post Reply