Bug 26020 - sabnzbd won't start; makes wrong check for python cheetah module version
Summary: sabnzbd won't start; makes wrong check for python cheetah module version
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-01-05 04:34 CET by Rolf Pedersen
Modified: 2020-01-07 22:21 CET (History)
4 users (show)

See Also:
Source RPM: sabnzbd-2.1.0-2.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Rolf Pedersen 2020-01-05 04:34:17 CET
I asked urpmi to give me sabnzbd and the following were installed:

 1/10: python2-ply         
 2/10: python2-pycparser   
 3/10: python2-cffi        
 4/10: python2-cheetah     
 5/10: python-yenc         
 6/10: python2-asn1crypto  
 7/10: python2-cryptography
 8/10: python2-OpenSSL     
 9/10: parchive2           
10/10: sabnzbd             

I clicked the icon in the menu, there was a flash of a window, then nothing.  I executed the application indicated in the menu item:

sh -c "cd /usr/share/SABnzbd/ && python SABnzbd.py"
and got:
Sorry, requires Python module Cheetah 2.0rc7 or higher.

Searched in google, that led to a Debian bug on that symptom:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900826

Maybe someone could take a look, please?  Thanks.
Comment 1 Barry Jackson 2020-01-05 14:10:29 CET
Will do - thanks for reporting.

CC: (none) => zen25000
Assignee: bugsquad => zen25000

Comment 2 Barry Jackson 2020-01-06 14:38:01 CET
The cheetah issue may be fixed locally with a minor change (see below), however the package is still out of date and updating it in Mga7 would require new supporting packages (python2-gntp and python-sabyenc) which I do not want to try to introduce into a stable release.

If I had known about this during Mga7 development then it could have been updated, but unfortunately my check script for package version updates was telling me that the version was current. 

Since this package has not (quite) yet been ported to python3 it cannot currently be updated for Mga8, so even a backport from Cauldron is not currently possible.

To fix the start-up issue in Mga7 change the line (around line 47) in /usr/share/SABnzbd/SABnzbd.py as follows:

-    if Cheetah.Version[0] != '2':
+    if Cheetah.Version[0] < '2':

If this is adequate and the current version is then usable please let me know and I can submit just this change. 

If anyone would like to take over this package, please feel free to do so, as I really don't have the time right now.
Just ask and I will willingly release it to 'nobody'.
Comment 3 Rolf Pedersen 2020-01-06 15:01:30 CET
After the patch, the program starts and I'm able to find the web interface.  All seems operational; I just have to figure out how to use it.  Thanks!

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 4 Barry Jackson 2020-01-06 23:18:42 CET
OK if that seems to work ok then maybe it's worth pushing that simple change as an update.
Re-opening until that is done.
BTW it must be 10 years since you were teaching me about grub on the Mdv forum!
Time flies :)

Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Barry Jackson 2020-01-06 23:20:35 CET

Summary: sabnzbd won't start; requires different python cheetah module version => sabnzbd won't start; makes wrong check for python cheetah module version

Comment 5 Barry Jackson 2020-01-06 23:49:10 CET
An update to sabnzbd has been submitted to 7/core/updates_testing

########################
Update Advisory

This update corrects a problem which stopped the package from starting with the latest python-cheetah module.

########################
Affected packages

sabnzbd-2.1.0-2.1.mga7.noarch.rpm

From:

sabnzbd-2.1.0-2.1.mga7.src.rpm

########################
Testing

Test the current package and confirm that it fails to run.

Update to the new package and confirm that it does start and launch the default browser showing a log-in screen.
Barry Jackson 2020-01-06 23:50:49 CET

Assignee: zen25000 => qa-bugs

Comment 6 Thomas Andrews 2020-01-07 01:05:41 CET
Confirming problem and solution. Update brought up a start-up wizard in Firefox.

OK for 64-bit. Validating. Advisory in Comment 5.

CC: (none) => andrewsfarm, sysadmin-bugs
Whiteboard: (none) => MGA7-64-OK
Keywords: (none) => validated_update

Comment 7 Rolf Pedersen 2020-01-07 15:43:55 CET
(In reply to Barry Jackson from comment #4)
> OK if that seems to work ok then maybe it's worth pushing that simple change
> as an update.
> Re-opening until that is done.
> BTW it must be 10 years since you were teaching me about grub on the Mdv
> forum!
> Time flies :)

Ok, thanks.  Looking at the scraps of email and files on my computer, including a copy of Tom Berger's MandrakeUser.org, I'm reminded of how I was taught by the cooker devs, some still here, and other users on lists, groups, and at Denis Havlik's Mandrake Club.  My experience has been a testament of an enduring philosophy that earned the reputation of "first user-friendly Linux distro"[*].
Considering how the relatively simple grub and its easily remembered tools has evolved to grub2, I suppose the student has become the teacher. ;)
[*] https://fossforce.com/2019/04/gael-duval-father-of-user-friendly-linux-on-mandrake-and-e-phone/
Thomas Backlund 2020-01-07 21:39:04 CET

CC: (none) => tmb
Keywords: (none) => advisory

Comment 8 Mageia Robot 2020-01-07 22:21:18 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0013.html

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.