Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600356 - net-nntp/sabnzbd init is broken if default python is not v2.x
Summary: net-nntp/sabnzbd init is broken if default python is not v2.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-20 22:03 UTC by Sébastien P.
Modified: 2016-11-21 20:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien P. 2016-11-20 22:03:15 UTC
Since https://gitweb.gentoo.org/repo/gentoo.git/commit/net-nntp/sabnzbd?id=23150df6ad2364e1d4de4438f8ef1379c20257c9 the init can't hanble a default python set with v3.

My python settings:
# eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.4 *

So it try to load sabnzbd with python3:
$ /usr/share/sabnzbd/SABnzbd.py
  File "/usr/share/sabnzbd/SABnzbd.py", line 20
    print "Sorry, requires Python 2.7."

Same command with another v2:
$ /usr/bin/python2 /usr/share/sabnzbd/SABnzbd.py
2016-11-20 22:49:33,242::INFO::[SABnzbd:1230] --------------------------------
2016-11-20 22:49:33,243::INFO::[SABnzbd:1231] SABnzbd.py-1.1.1 (rev=33a7874416d8a8cc6a0d1e3f8d1e4042f2762d81)
2016-11-20 22:49:33,243::INFO::[SABnzbd:1232] Full executable path = /usr/share/sabnzbd/SABnzbd.py
[…]

=> Could you revert the change or change the init?
This bug should be assign to jsbronder.
Comment 1 Michał Kępień 2016-11-21 00:00:20 UTC
Fix submitted: https://github.com/gentoo/gentoo/pull/2874.  Sorry!
Comment 2 Justin Bronder (RETIRED) gentoo-dev 2016-11-21 14:09:17 UTC
Merged.
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2016-11-21 16:13:05 UTC
*** Bug 600404 has been marked as a duplicate of this bug. ***
Comment 4 Ben Kohler gentoo-dev 2016-11-21 16:32:52 UTC
This really should have gotten a revbump
Comment 5 Justin Bronder (RETIRED) gentoo-dev 2016-11-21 16:46:26 UTC
Good point.  Done.
Comment 6 Sébastien P. 2016-11-21 20:22:25 UTC
It works. Thanks to you