<div id="RTEContent"> <br> <br> 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.<br> <br> Trying to import Twisted into Jython on Win XP I get:<br> TypeError: unhashable instance <br> With the following stacktrace:<br> <br> Jython 2.2a1 on java1.4.2_03 (JIT: null)<br> Type "copyright", "credits" or "license" for more information.<br> >>> import twisted<br> Traceback (innermost last):<br> File "<console>", line 1, in ?<br> File "c:\R.and.D\Jython\Lib\site-packages\twisted\__init__.py", line 18, in ?<br> File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\__init__.py", line 54, in ?<br> File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\interface.py", line 802, in ?<br> File "c:\R.and.D\Jython\Lib\site-packages\zope\interface\interface.py", line 418, in __in<br> it__<br> File
"c:\R.and.D\Jython\Lib\site-packages\zope\interface\interface.py", line 225, in __in<br> it__<br> File "c:\R.and.D\Jython\Lib\weakref.py", line 147, in __init__<br> TypeError: unhashable instance<br> >>><br> <br> There is a prior issue that Jython doesn't recognize site-packages on Win XP, though this seems to be solved with:<br> sitedirs = [prefix, makepath(prefix, "Lib", "site-packages")]<br> <br> <br> Can anybody in this list shed light on the problem?<br> <br> Regards,<br> <br> Stephen Nightingale.<br> <br> </div><p>
                <hr size=1>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<a href="http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/">Yahoo! Cars</a>
<font color="red">NEW</font> - sell your car and browse thousands of new and used cars online <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/">search now</a>
</font>
<hr size=1>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">