Package: hellanzb
Version: 0.13-6.1
Severity: grave
Tags: upstream patch
Justification: renders package unusable

Dear Maintainer,

Twisted keeps moving _NO_FILENO around.  The error is:

        $ hellanzb 
        Traceback (most recent call last):
          File "/usr/bin/hellanzb", line 14, in <module>
            from Hellanzb.Core import main
          File "/usr/lib/pymodules/python2.7/Hellanzb/Core.py", line 9, in 
<module>
            from Hellanzb.HellaReactor import HellaReactor
          File "/usr/lib/pymodules/python2.7/Hellanzb/HellaReactor.py", line 
14, in <module>
            from twisted.internet.selectreactor import _NO_FILENO
        ImportError: cannot import name _NO_FILENO

The fix is:

diff --git a/Hellanzb/HellaReactor.py b/Hellanzb/HellaReactor.py
index 4284c0b..88ee556 100644
--- a/Hellanzb/HellaReactor.py
+++ b/Hellanzb/HellaReactor.py
@@ -9,7 +9,11 @@ reactor system so it can catch signals, and shutdown hellanzb 
cleanly
 import Hellanzb, sys, time
 
 import twisted.copyright
-if twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= 
'10.0.0':
+if twisted.copyright.version >= '11.1.0':
+    from twisted.internet.selectreactor import SelectReactor
+    from twisted.internet.posixbase import _NO_FILENO
+    from twisted.internet.posixbase import _NO_FILEDESC
+elif twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= 
'10.0.0':
     from twisted.internet.selectreactor import SelectReactor
     from twisted.internet.selectreactor import _NO_FILENO
     from twisted.internet.selectreactor import _NO_FILEDESC

I've submitted this upstream via github:
https://github.com/emikulic/hellanzb/commit/2a8a873b65d79a6483d4c7afb547ed8ce43b8d6e


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hellanzb depends on:
ii  par2                 0.4-11
ii  python               2.7.2-9
ii  python-openssl       0.13-1
ii  python-support       1.0.14
ii  python-twisted-core  11.1.0-1
ii  python-twisted-web   11.1.0-1

Versions of packages hellanzb recommends:
ii  python-yenc  0.3+debian-2+b2

Versions of packages hellanzb suggests:
ii  unrar  1:4.0.3-1

-- Configuration Files:
/etc/hellanzb.conf changed [not included]

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to