Author Topic: [SOLVED] Lottanzb  (Read 1184 times)

Offline tomaso

  • Jr. Member
  • **
  • Posts: 11
[SOLVED] Lottanzb
« on: August 25, 2010, 05:59:01 PM »
Lottanzb doesnt work anymore. I get the error Import error: cannot import name -NO_FILENO. No Hellanzb daemon seems to be listening to the default port, so its most likely not running. The standalone mode might be the most appropiate usgage mode for you. Which I 'm using!!! This probably has to do with upgrading Python-twisted as filed in several OSX reports. Downgrading solves the problem but unfortunately this is not possible in PCLinux 2010 at this moment.

Gr, Tomaso
« Last Edit: October 03, 2010, 01:53:50 AM by Texstar »

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: Lottanzb
« Reply #1 on: August 26, 2010, 05:43:48 AM »
output from console

Code: [Select]
$ hellanzb
/usr/lib/python2.5/site-packages/twisted/internet/default.py:15: DeprecationWarning: twisted.internet.default is deprecated. Use posixbase or selectreactor instead.
  warnings.warn("twisted.internet.default is deprecated. Use posixbase or selectreactor instead.", category=DeprecationWarning)
Traceback (most recent call last):
  File "/usr/bin/hellanzb", line 14, in <module>
    from Hellanzb.Core import main
  File "/usr/lib/python2.5/site-packages/Hellanzb/Core.py", line 9, in <module>
    from Hellanzb.HellaReactor import HellaReactor
  File "/usr/lib/python2.5/site-packages/Hellanzb/HellaReactor.py", line 18, in <module>
    from twisted.internet.default import _NO_FILENO
ImportError: cannot import name _NO_FILENO
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 558
  • be patient, I'm German
Re: Lottanzb
« Reply #2 on: September 04, 2010, 09:34:24 AM »
I found this as a solution; we need a patch

Code: [Select]
--- xmlrpc.py 2010-03-10 18:29:19.000000000 -0600
+++ /usr/share/pyshared/Hellanzb/HellaXMLRPC/xmlrpc.py 2010-03-10 18:30:03.000000000 -0600
@@ -31,7 +31,7 @@
 from twisted.python import log, reflect
 
 import twisted.copyright
-if twisted.copyright.version >= '2.0.0':
+if twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0':
     from twisted.web import http
 else:
     from twisted.protocols import http
--- HtPasswdAuth.py 2010-03-10 18:30:29.000000000 -0600
+++ /usr/share/pyshared/Hellanzb/HellaXMLRPC/HtPasswdAuth.py 2010-03-10 18:30:49.000000000 -0600
@@ -19,7 +19,7 @@
 from twisted.web.resource import Resource
 
 import twisted.copyright
-if twisted.copyright.version >= '2.0.0':
+if twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0':
     from twisted.web import http
 else:
     from twisted.protocols import http
--- HellaReactor.py 2010-03-10 18:22:34.000000000 -0600
+++ /usr/share/pyshared/Hellanzb/HellaReactor.py 2010-03-10 18:30:07.000000000 -0600
@@ -9,7 +9,7 @@
 import Hellanzb, sys, time
 
 import twisted.copyright
-if twisted.copyright.version >= '2.0.0':
+if 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

if twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0': (with this change hellanzb come back to work)
I changed the files manually, since I have no idea of patch

so if anyone knows ...


salu2
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline tomaso

  • Jr. Member
  • **
  • Posts: 11
Re: Lottanzb
« Reply #3 on: October 02, 2010, 02:15:01 PM »
Lottanzb works again after the last upgrade. ;D Thanx Tex.

Gr, Tomaso