Page 1 of 1
Python 2.5.5 error SABnzbd 0.5RC
Posted: February 2nd, 2010, 3:42 am
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
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 2nd, 2010, 4:33 am
by shypike
Looks like an inconsistent Python setup.
Maybe you should (also) complain to the QNAP package creators?
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 5th, 2010, 10:49 am
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
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 5th, 2010, 12:37 pm
by shypike
You miss PyOpenSSL !
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 6th, 2010, 1:20 pm
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
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 7th, 2010, 5:10 am
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 ?
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 7th, 2010, 6:02 am
by shypike
The finding is done by Python itself.
We just say
Should an import error occur, we know that SSL support is not present.
You'll probably have to tweak the Python installation.
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 7th, 2010, 9:50 am
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.
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 9th, 2010, 12:41 pm
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
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 15th, 2010, 10:03 am
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
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 15th, 2010, 12:30 pm
by shypike
I sympathise.
OpenSSL and Python is difficult relationship.
We've had quite some trouble to get it working with Windows Vista/7.
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 17th, 2010, 4:07 am
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.
Re: Python 2.5.5 error SABnzbd 0.5RC
Posted: February 22nd, 2010, 5:54 am
by dude
hello since the last python update all is good
juste need to update to python 2.5.5-2 et voila
by