overbyrn Posted September 30, 2012 Share Posted September 30, 2012 Been looking at this also as I'm trying to create an autotag script using beet. After battling to get some of beets plugins working, I came to the conclusion that python 2.7 is the only way I'm going to achieve this as some plugins like tag scrub just plain fail with python 2.6. I was interested to see how broke sabnzbd gets after installing python 2.7. As already mentioned, the cheetah package installs to 2.6 site-packages. You can overcome that if you install cheetah via setuptools easy_install or pip. Sab will then run as I did a quick test with it running as a foreground process. It looks like pyopenssl and yenc also go into 2.6 site-packages and unlike cheetah, both fail to install via easy_install / pip as both are trying to call gcc, which'd need all the necessary build tools to be installed. Link to comment
overbyrn Posted September 30, 2012 Share Posted September 30, 2012 Ok, I've created new packages of cheetah, pyopenssl & yenc. These install to python 2.7 site-packages by default. I've only very briefly tested this, so beware, but I replaced the three packages of the same name that Influencers sabnzbd_unplugged.plg uses as well as installing python 2.7 instead, and sabnzbd plugin came right up and worked upon a fresh reboot. Links to the python 2.7 versions here: http://dl.dropbox.com/u/572553/UnRAID/sabnzbd/pyopenssl-0.11-i486-1alien.tgz http://dl.dropbox.com/u/572553/UnRAID/sabnzbd/python-cheetah-2.4.4-i486-1alien.tgz http://dl.dropbox.com/u/572553/UnRAID/sabnzbd/python-yenc-0.3-i486-1alien.tgz (I've just noticed I still have a /usr/lib/python 2.6/site-packages dir with libxml12 in it. Not sure how relevant this is. It was a clean install, no packages or plugins other than sab and certainly no hint of python 2.6 for it to have come from there. Not sure where it's come from and don't have any more time today to mess about with this right now. One more thing and again I don't know if it's relevant, but I'm using a slightly newer version of openssl (openssl-1.0.1c-i486-3.txz). Only reason for this is that in my earlier testing with beet, I was using a one of its plugins (scrub) which relies on mutagen. I kept getting python traceback crashes and the only way I could squash them was to install a later openssl package. Something to do with hashlib I seem to recall. UPDATE: using Python 2.7 + these new packages, I have sucessfully installed and tested SABnzbd, Sickbeard, Couchpotato, DenyHosts. @ Influencer, if you want me to send you the modified SAB, SB and CP plugins please let me know. But to be fair, all I did was change each plugin to reference python 2.7 in your earlier post + the replacement packages in my links above and lastly for SAB I updated openssl to openssl-1.0.1c-i486-3.txz Regards, overbyrn Link to comment
piotrasd Posted March 26, 2013 Share Posted March 26, 2013 Latest packages compiled special for unraid https://truck.it/p/Vq3zpArAKB (package python 2.7.3 contains yenc, pyopenssl, cheetah) Link to comment
Rebbica Posted April 5, 2013 Share Posted April 5, 2013 I am new to python and have been lucking on this thread with great interest. Link to comment
phenomeus Posted September 17, 2013 Share Posted September 17, 2013 overbyrn can u please update the plugins like denyhosts in your github to work with python2.7? Link to comment
overbyrn Posted September 17, 2013 Share Posted September 17, 2013 overbyrn can u please update the plugins like denyhosts in your github to work with python2.7? If you check my GitHub, you will see that I already had a python2.7 branch. It is a few commits behind master. Link to comment
phenomeus Posted September 17, 2013 Share Posted September 17, 2013 ah thank you. sorry didnt see it Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.