s|s wrote:
> I have been trying to use jpython. My work mostly
> involves web and hence I am trying to run django on
jpython.
> As a stepping stone, I have gotten cherrypy 2.0.0
> to work on jpython.
> cherrypy 2.0.0 mostly required "from __future__
> import generators".
> Also I would like to know why this error occurs
>
> ('_local__key', 'thread.local.2') {}
> Traceback (innermost last):
> File "05_derived_objects.py", line 75, in ?
> File "/home/ss/dev/jython/trunk/jython/dist/
> Lib/cherrypy/_cpserver.py",
> line 74, in start
> File "/home/ss/dev/jython/trunk/jython/dist/
> Lib/cherrypy/_cpthreadinglocal.py",
> line 158, in __new__
> TypeError: keys in namespace must be strings
This looks like a bug in the _cpthreadinglocal module (which
was copied straight from the Python Lib, so it's probably a
bug there, too). Try changing _cpthreadinglocal line 145
from:
key = '_local__key', 'thread.local.' + str(id(self))
to:
key = 'thread.local.' + str(id(self))
That seems to work for me under CPython. Let me know if it
works for you with Jython, and we'll patch our code and tell
the Python devs about it.
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|