[Twisted-Python] TypeError: Class advice impossible in Python3.

ABHISHEK BHAT abhishekbhat at hotmail.com
Wed Jan 9 15:06:48 EST 2013


Hi
I am trying to use Twisted and PB but running into the below error in the zope.interface module.

I am running Python 3.3 and zope.interface version 4.0.3. I am running this on a RedHat system.

Does anybody know how to get around this problem?





bash-3.2$ python pb_client.py


Traceback (most recent call last):

  File
"pb_client.py", line 2, in <module>

    from
twisted.spread import pb


  File
"/home/abhat1/python3.3/lib/python3.3/site-packages/twisted/spread/pb.py",
line 40, in <module>

    from
twisted.cred.credentials import IAnonymous, ICredentials


  File
"/home/abhat1/python3.3/lib/python3.3/site-packages/twisted/cred/credentials.py",
line 111, in <module>

    class
DigestedCredentials(object):


  File
"/home/abhat1/python3.3/lib/python3.3/site-packages/twisted/cred/credentials.py",
line 115, in DigestedCredentials

   
implements(IUsernameHashedPassword, IUsernameDigestHash)


  File
"/home/abhat1/python3.3/lib/python3.3/site-packages/zope/interface/declarations.py",
line 405, in implements

    raise
TypeError(_ADVICE_ERROR % 'implementer')

TypeError: Class advice impossible in Python3.  Use the @implementer class decorator instead.


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130109/26bf6ea5/attachment-0001.htm 


More information about the Twisted-Python mailing list