Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474540 - net-nntp/sabnzbd-0.7.12 with dev-python/gntp-version-0.6 - File "/usr/share/sabnzbd/sabnzbd/growler.py", line 34, in <module> from gntp import GNTPRegister ImportError: cannot import name GNTPRegister
Summary: net-nntp/sabnzbd-0.7.12 with dev-python/gntp-version-0.6 - File "/usr/share/s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-06-23 23:09 UTC by dcb
Modified: 2013-06-25 03:29 UTC (History)
0 users

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 dcb 2013-06-23 23:09:03 UTC
From this thread in the forum:

http://forums.gentoo.org/viewtopic-p-7329986.html#7329986

Latest sabnzbd and gntp:

File "/usr/share/sabnzbd/sabnzbd/misc.py", line 46, in <module>
import sabnzbd.growler as growler
File "/usr/share/sabnzbd/sabnzbd/growler.py", line 34, in <module>
from gntp import GNTPRegister
ImportError: cannot import name GNTPRegister

It works by masking the newest version of dev-python/gntp.

[I] net-nntp/sabnzbd
Available versions: (~)0.7.10 (~)0.7.11 (~)0.7.12 {{+rar +ssl unzip +yenc}}
Installed versions: 0.7.12(11:35:13 06/16/13)(rar ssl yenc -unzip)
Homepage: http://www.sabnzbd.org/
Description: Binary newsgrabber with web-interface

[I] dev-python/gntp
Available versions: (~)0.5 (~)0.6 [m](~)1.0.1 {{python_targets_python2_5 python_targets_python2_6 python_targets_python2_7 python_targets_python3_3}}
Installed versions: 0.6(11:32:14 06/16/13)
Homepage: https://github.com/kfdm/gntp http://pypi.python.org/pypi/gntp
Description: Python library for working with the Growl Notification Transport Protocol 

User pums974 reported this fix:

seems like correcting in growler.py

from gntp import GNTPRegister

from gntp.core import GNTPRegister
Comment 1 Justin Bronder (RETIRED) gentoo-dev 2013-06-24 22:57:16 UTC
Just to confirm, you only see this with >dev-python/gntp-0.6?
Comment 2 dcb 2013-06-25 01:11:23 UTC
Yes, only with >dev-python/gntp-0.6 that I've seen.

I've just synced the portage tree and see 0.7.13-r1 with gntp-1.0.patch.  This update fixed the problem with sabnzbd and gntp-1.0.1.

I'll update the thread in the forum.  Thank you!
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2013-06-25 03:28:16 UTC
*sabnzbd-0.7.13-r1 (24 Jun 2013)

  24 Jun 2013; Justin Bronder <jsbronder@gentoo.org> +sabnzbd-0.7.13-r1.ebuild,
  +files/growler-support-gntp-1.0.patch:
  Support newer versions of dev-python/gntp, resolves #474540.
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2013-06-25 03:29:11 UTC
(In reply to dcb from comment #2)
> Yes, only with >dev-python/gntp-0.6 that I've seen.
> 
> I've just synced the portage tree and see 0.7.13-r1 with gntp-1.0.patch. 
> This update fixed the problem with sabnzbd and gntp-1.0.1.
> 
> I'll update the thread in the forum.  Thank you!

Excellent, thanks for reporting the bug and quickly responding!