Experience with SABnzbd on Python 2.6

Feel free to talk about anything and everything in this board.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Experience with SABnzbd on Python 2.6

Post by sander »

FWIW: I would like to share experiences with SABnzbd on Python 2.6

I'm able to use SABnzbd 0.4.7 on Python 2.6 (on Ubuntu Jaunty Alpha 5 updated), however there two DeprecationWarnings at the beginning:

Code: Select all

sander@jaunty:~/SABnzbd-0.4.7$ ./SABnzbd.py
/home/sander/SABnzbd-0.4.7/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/home/sander/SABnzbd-0.4.7/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
2009-03-02 19:14:52,277::INFO::--------------------------------
2009-03-02 19:14:52,278::INFO::SABnzbd.py-0.4.7 (rev=2225)
2009-03-02 19:14:52,280::INFO::Platform = posix
2009-03-02 19:14:52,281::INFO::Python-version = 2.6.1+ (r261:67515, Mar  2 2009, 13:10:18) 
[GCC 4.3.3]
As reported in another thread, so far SAB runs without python-yenc.

A annoying thing: pressing Save Changes after a change in http://localhost:8080/sabnzbd/m/config/general/, takes ages (well: at least 5 minutes, after which I pressed Ctrl-C). Output on the screen:

Code: Select all

::ffff:127.0.0.1 - - [02/Mar/2009:19:28:58] "GET /sabnzbd/m/config/general/ HTTP/1.1" 200 - "http://localhost:8080/sabnzbd/m/config/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009022714 Ubuntu/9.04 (jaunty) Firefox/3.0.6"
2009-03-02 19:29:06,757::INFO::SABnzbd shutting down...
2009-03-02 19:29:06,759::INFO::[sabnzbd.misc] URLGrabber shutting down
2009-03-02 19:29:06,761::INFO::[downloader] Shutting down
2009-03-02 19:29:06,762::INFO::[assembler] Shutting down
2009-03-02 19:29:06,763::INFO::[nzbqueue] Saving queue
2009-03-02 19:29:06,764::INFO::[sabnzbd] Saving data for queue7.sab in /home/sander/.sabnzbd/cache/queue7.sab
2009-03-02 19:29:06,766::INFO::[sabnzbd] Saving data for bytes7.sab in /home/sander/.sabnzbd/cache/bytes7.sab
2009-03-02 19:29:06,767::INFO::[sabnzbd] Saving data for rss_data.sab in /home/sander/.sabnzbd/cache/rss_data.sab


^C2009-03-02 19:35:08,375::WARNING::[sabnzbd] Signal 2 caught, saving and exiting...
2009-03-02 19:35:08,376::INFO::[nzbqueue] Saving queue
2009-03-02 19:35:08,376::INFO::[sabnzbd] Saving data for queue7.sab in /home/sander/.sabnzbd/cache/queue7.sab
2009-03-02 19:35:08,377::INFO::[sabnzbd] Saving data for bytes7.sab in /home/sander/.sabnzbd/cache/bytes7.sab
2009-03-02 19:35:08,377::INFO::[sabnzbd] Saving data for rss_data.sab in /home/sander/.sabnzbd/cache/rss_data.sab
sander@jaunty:~/SABnzbd-0.4.7$

If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Experience with SABnzbd on Python 2.6

Post by switch »

Shypike has started to address some python 2.6 problems for 0.5. It is not the sabnzbd code that is incompatible but the third party code we use. The warnings can be ignored, they are just warning for stuff that can't be used in python 3.
  • CherryPy
  • yEnc (not required by heavily recommended)
  • Cheetah (may work without compiling)
  • kronos (probably causes the crashes at shutdown or config change)
  • configobj (ini config reading)
  • pyOpenSSL (required for SSL and HTTPS)
You can track further progress here. There is no guarentee we can have python 2.6 support for the sabnzbd 0.5 release, it depends on if the third party code is updated or can be easily patched.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Experience with SABnzbd on Python 2.6

Post by jcfp »

Nice to have a way to keep up with progress as it's made. Noticed the infinite wait on shutdown myself as well when using 2.6 in an emulated jaunty install, good to know it wasn't just general slowness associated with such a setup :D.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Experience with SABnzbd on Python 2.6

Post by sander »

jcfp wrote: Nice to have a way to keep up with progress as it's made. Noticed the infinite wait on shutdown myself as well when using 2.6 in an emulated jaunty install, good to know it wasn't just general slowness associated with such a setup :D.
A 'workaround' is to just reload the (start) webpage of SABnzbd, so http://localhost:8080/sabnzbd : the web engine apparently just works.

EDIT:

A 'workaround' with 0.4.7 is to just reload the webpage of SABnzbd, so pressing the web browser's Reload butoon or F5, a few seconds after pressing Save Changes.
Last edited by sander on March 3rd, 2009, 3:24 pm, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Experience with SABnzbd on Python 2.6

Post by sander »

To use the 0.5.0-version I need to use the svn-version, right? Is there an *easy* way to get that version unto my system? I was able to get it a month ago (after creating a password on assembla and doing a lot of things on my system), but I've forgotten how.

I tried "wget --recursive http://svn2.assembla.com/svn/SABnzbd/trunk/main/", but that results in files without correct rwx-settings, so it doesn't work.

Tips?


Futhermore: I'm glad to see there's work on SAB on python 2.6.
Just checking: Ubuntu 9.04 has Python 2.6 and whill arrive late April, and by that time SAB will not have reached 0.5.0? If so, we still need to find a solution for SAB 0.4.x on Python 2.6 on Ubuntu 9.04.
Last edited by sander on March 2nd, 2009, 4:46 pm, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Experience with SABnzbd on Python 2.6

Post by jcfp »

There's public svn access, just 'svn co
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Experience with SABnzbd on Python 2.6

Post by sander »

jcfp wrote: There's public svn access, just 'svn co
Thanks: that works easily.

I'm now running the trunk version on Python 2.6 (on Jaunty) and ... Save Changes works fast! Great.

BTW: I'm impressed by the setup wizard, including the initial server testing. And I think the Giganews-advice is good for new users and (probably) good for the SAB developers. I didn't check, but I hope Giganews has a one-day-access-for-one-SMS service, as that's handy for new users.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
sHINE
Release Testers
Release Testers
Posts: 13
Joined: August 10th, 2009, 3:43 pm

Re: Experience with SABnzbd on Python 2.6

Post by sHINE »

Hi!

Just installed python 2.6 (can't use 2.5) and downloaded the latest 0.5.x alpha release. Everything works as expected but I can't use any skin other than the default one. If I configure Plush, it looks like plain html-text, no buttons, just text...As I am just a lame windows user, I have no idea whats wrong.

Do I miss something or is this normal, cuz' it's an alpha release?

Also my download speed is significantly lower, but will investigate this later.

I'm using latest alpha on freenas 0.7RC2.

Sorry for my bad english, hope you understand me :)

Regards,
Jan
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Experience with SABnzbd on Python 2.6

Post by switch »

Try a ctrl+f5 (clear your cache). Sounds like the stylesheet (.css file) just isn't getting loaded.
sHINE
Release Testers
Release Testers
Posts: 13
Joined: August 10th, 2009, 3:43 pm

Re: Experience with SABnzbd on Python 2.6

Post by sHINE »

Hi!

Just tried that with no success. Even used another browser (Firefox, IE) with no success...

Any other hints? It appears on all skins other than the default one.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Experience with SABnzbd on Python 2.6

Post by switch »

What page are you navigating to? Make sure it is the index of the site (http://localhost:8080/sabnzbd/ or just http://localhost:8080 under 0.5). smpl and plush both load the other pages by javascript so there is no need for other pages to output the full page.
sHINE
Release Testers
Release Testers
Posts: 13
Joined: August 10th, 2009, 3:43 pm

Re: Experience with SABnzbd on Python 2.6

Post by sHINE »

Yes, it's the index. Maybe I need some additionall packages for FreeBSD?

This is what I have installed:

python 2.6
python 2.6-Setuptools
Cheetah
CherryPy 3.2(supplied by u)
python 2.6 utils
python 2.6-elementtree
python 2.6-cElementTree
python 2.6-openssl
python 2.6-chardet
python 2.6-feedparser
par2cmdline
unrar
unzip

Can I look in some log-files to investigate this further?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Experience with SABnzbd on Python 2.6

Post by switch »

Can you just navigate to the main sabnzbd page, save it in your browser (File>Save) and send it to bugs@sabnzbd.org so I can take a further look at what is (or is not) being loaded.

Cheers.
sHINE
Release Testers
Release Testers
Posts: 13
Joined: August 10th, 2009, 3:43 pm

Re: Experience with SABnzbd on Python 2.6

Post by sHINE »

Mail sent.
sHINE
Release Testers
Release Testers
Posts: 13
Joined: August 10th, 2009, 3:43 pm

Re: Experience with SABnzbd on Python 2.6

Post by sHINE »

This is how it looks like. Some buttons work, some don't (like the save button)
Plush skin configured.
Post Reply