Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814503 - net-nntp/sabnzbd-3.4.0 requires puremagic python module
Summary: net-nntp/sabnzbd-3.4.0 requires puremagic python module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-23 18:03 UTC by Neil Bothwick
Modified: 2021-09-29 16:55 UTC (History)
1 user (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 Neil Bothwick 2021-09-23 18:03:46 UTC
Trying to run net-nntp/sabnzbd-3.4.0 results in this output

× sabnzbd@0.service - SABnzbd binary newsreader
     Loaded: loaded (/lib/systemd/system/sabnzbd@.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-09-23 18:58:01 BST; 10s ago
    Process: 2581256 ExecStart=/usr/share/sabnzbd/SABnzbd.py --logging 1 --browser 0 (code=exited, status=1/FAILURE)
   Main PID: 2581256 (code=exited, status=1/FAILURE)

Sep 23 18:58:01 desiato SABnzbd.py[2581256]:     from sabnzbd.nzbstuff import NzbObject, NzbFile
Sep 23 18:58:01 desiato SABnzbd.py[2581256]:   File "/usr/share/sabnzbd/sabnzbd/nzbstuff.py", line 89, in <module>
Sep 23 18:58:01 desiato SABnzbd.py[2581256]:     from sabnzbd.deobfuscate_filenames import is_probably_obfuscated
Sep 23 18:58:01 desiato SABnzbd.py[2581256]:   File "/usr/share/sabnzbd/sabnzbd/deobfuscate_filenames.py", line 38, in <module>
Sep 23 18:58:01 desiato SABnzbd.py[2581256]:     import sabnzbd.utils.file_extension as file_extension
Sep 23 18:58:01 desiato SABnzbd.py[2581256]:   File "/usr/share/sabnzbd/sabnzbd/utils/file_extension.py", line 8, in <module>
Sep 23 18:58:01 desiato SABnzbd.py[2581256]:     import puremagic
Sep 23 18:58:01 desiato SABnzbd.py[2581256]: ModuleNotFoundError: No module named 'puremagic'
Sep 23 18:58:01 desiato systemd[1]: sabnzbd@0.service: Main process exited, code=exited, status=1/FAILURE
Sep 23 18:58:01 desiato systemd[1]: sabnzbd@0.service: Failed with result 'exit-code'.

Reproducible: Always




There is a puremagic module on PyPI but nothing in portage.
Comment 1 Davyd McColl 2021-09-24 19:37:35 UTC
as a workaround, as the user that sabnzbd is running as, do `pip install --user puremagic` - got it running again on my machine.

I also needed `guessit`, though there is a system package for that - I would have expected portage to have brought it in tho, instead of having to install it manually.
Comment 2 Michael Hampicke 2021-09-25 08:27:46 UTC
Jupp, same issue here. sabnzbd ebuild should depend on dev-python/guessit. For puremagic it seems that there is no ebuild at the moment.
Comment 3 Larry the Git Cow gentoo-dev 2021-09-25 13:59:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=081b927e8975e0bd5d2dfcb6b82576458ad05b50

commit 081b927e8975e0bd5d2dfcb6b82576458ad05b50
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-09-25 13:55:23 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-09-25 13:55:44 +0000

    dev-python/puremagic: initial import
    
    Required for net-nntp/sabnzbd.
    
    Bug: https://bugs.gentoo.org/814503
    Package-Manager: Portage-3.0.23, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-python/puremagic/Manifest              |  1 +
 dev-python/puremagic/metadata.xml          | 13 +++++++++++++
 dev-python/puremagic/puremagic-1.11.ebuild | 20 ++++++++++++++++++++
 3 files changed, 34 insertions(+)
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2021-09-25 13:59:44 UTC
Should be fixed with 3.4.1.
Comment 5 Neil Bothwick 2021-09-26 09:28:34 UTC
The puremagic sode is fixed, but it still fails to run unless guessit is installed. That's in portage, so it's just a matter of adding the DEPEND.
Comment 6 Larry the Git Cow gentoo-dev 2021-09-29 16:55:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34340911aed07e34df46918e9e12f26e4581cf9c

commit 34340911aed07e34df46918e9e12f26e4581cf9c
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-09-29 15:24:02 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-09-29 16:55:13 +0000

    net-nntp/sabnzbd: depend on dev-python/guessit
    
    Bug: https://bugs.gentoo.org/814503
    Package-Manager: Portage-3.0.26, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 net-nntp/sabnzbd/{sabnzbd-3.4.1.ebuild => sabnzbd-3.4.1-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)