michalpolkowski / alt-f

Automatically exported from code.google.com/p/alt-f
0 stars 0 forks source link

Update python to 2.6.6 (2.7.2) #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi,

Jcard can you still consider updating python to 2.6.6?

Did some research myself and found this blog for crosscompiling
python.

http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html

There are patches included to make cross-compiling possible!

The patch is also used to crosscompile for synology, found some
information about that up here:

http://synoblog.superzebulon.org/2011/09/python-2-6-6-4-spk/

Sickbeard Sabnzbd and Couchpotato only work with python version 2.6.

Sabnzbd uses additional packages like:

Cheetah 2.4.4
yenc module
par2cmdline binary
unrar binary
unzip binary
pyOpenSSL

On the synology blog you can find the modules that they have included in their 
python package...

Greetings

Original issue reported on code.google.com by bamibo...@gmail.com on 22 Feb 2012 at 4:55

GoogleCodeExporter commented 9 years ago
Updated to 2.7.2 now, using the patch you mention. Even so, three "days" of 
hard labour (including Worker Day ;-)

I don't know nothing about Sickbeard Sabnzbd and Couchpotato. Are them just 
python third-party modules that one extracts in the python lib dir?
Can you check what more modules Python needs and where they can be found? 
(besides the ones it already has)

Original comment by whoami.j...@gmail.com on 4 May 2012 at 5:55

GoogleCodeExporter commented 9 years ago
Great work!

Sickbeard and Couchpotato both rely on Sabnzbd to download their content.

Sabnzbd needs the following modules to run:
http://wiki.sabnzbd.org/install-off-modules

Sickbeard only needs Cheetah:
http://sickbeard.com/install.html

Up here you can find what packages / modules the synology build uses:
http://synoblog.superzebulon.org/2011/09/python-2-6-6-4-spk/

Original comment by KPScha...@gmail.com on 6 May 2012 at 8:32

GoogleCodeExporter commented 9 years ago

It's running now, but I don't know what to do next.
You can do it by yourself, then tell me what is missing.

Just cut and paste: 

    cd /mnt/sda2 # you might have to use other device, such as md0

    wget http://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz
    tar -zxvf Cheetah-2.4.4.tar.gz
    cd Cheetah-2.4.4
    sudo python setup.py install # this takes a while and installs Cheetah as python module
    cd ..
    rm -rf Cheetah-2.4.4* # don't need after it after installation in //usr/lib/python2.7/site-packages/

    wget --no-check-certificate https://github.com/midgetspy/Sick-Beard/tarball/master
    tar -xzf master
    rm master
    mv midgetspy-Sick-Beard-* midgetspy-Sick-Beard
    cd midgetspy-Sick-Beard
    python SickBeard.py # next time you only need the previous and this step

and after a while you will see a message saying

    Starting Sick Beard on http://0.0.0.0:8081/ # it might be 8080 or other

now direct a browser to your box http://<your nas>:8081 # or whatever the 
previous message said

And try it.
Is working? What is missing?
I know that at least one Cheetah component could be compiled for faster speed, 
but for now I only want to know if it is really working.

Original comment by whoami.j...@gmail.com on 6 May 2012 at 10:23

GoogleCodeExporter commented 9 years ago
it's working :)

I am already running sickbeard and sabnzbd under ffp so thats why I used 
python2.7 instead of python.

did this:

cd /mnt/flashdisk
wget http://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz
cd Cheetah-2.4.4
python2.7 setup.py install
cd /mnt/flashdisk
rm -rf Cheetah-2.4.4

cd /mnt/flashdisk
wget --no-check-certificate 
https://github.com/midgetspy/Sick-Beard/tarball/master
tar -xzf master
rm master
mv midgetspy-Sick-Beard-* midgetspy-Sick-Beard
python2.7 SickBeard.py

Got this warning after a version check in sickbeard.
Under ffp the same thing happends but maybe you can include a c version of 
NameMapper?

/usr/lib/python2.7/site-packages/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's 
useStackFrames option as it is painfully slow with the Python version of 
NameMapper. You should get a copy of Cheetah with the compiled C version of 
NameMapper.
  "\nYou don't have the C version of NameMapper installed! "

Original comment by KPScha...@gmail.com on 7 May 2012 at 9:55

GoogleCodeExporter commented 9 years ago
All programs now available, close.

Original comment by whoami.j...@gmail.com on 12 May 2012 at 2:11

GoogleCodeExporter commented 9 years ago

Original comment by whoami.j...@gmail.com on 12 May 2012 at 2:11