[Twisted-web] Unhashable Instance with Twisted imported into Jython

Stephen Nightingale j_s_nightingale at yahoo.co.uk
Mon Jan 23 11:28:21 MST 2006

  Not sure if this is a Twisted issue or a Jython issue or both, so I'll post both ways.  Using Jython 2.2 alpha, the latest.
  Trying to import Twisted into Jython on Win XP I get:
  TypeError:  unhashable instance  
  With the following stacktrace:
  Jython 2.2a1 on java1.4.2_03 (JIT: null)
  Type "copyright", "credits" or "license" for more information.
  >>> import twisted
  Traceback (innermost last):
    File "<console>", line 1, in ?
    File "c:\R.and.D\Jython\Lib\site-packages\twisted\__init__.py", line 18, in ?
    File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\__init__.py", line 54, in ?
    File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\interface.py", line 802, in ?
    File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\interface.py", line 418, in __in
    File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\interface.py", line 225, in __in
    File "c:\R.and.D\Jython\Lib\weakref.py", line 147, in __init__
  TypeError: unhashable instance
  There is a prior issue that Jython doesn't recognize site-packages on Win XP, though this seems to be solved with:
     sitedirs = [prefix, makepath(prefix, "Lib", "site-packages")]
  Can anybody in this list shed light on the problem?
  Stephen Nightingale.

  Yahoo! Cars NEW - sell your car and browse thousands of new and used cars online search now  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20060123/9c199885/attachment.htm

More information about the Twisted-web mailing list