|
Subject: cherrypy 2.0.0 Newsgroups: gmane.comp.lang.jython.devel Date: 2006-11-22 15:18:01 GMT (2 years, 31 weeks, 6 days, 20 hours and 27 minutes ago)
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.
As an example
[ss <at> localhost tutorial]$ java -jar
~/dev/jython/trunk/jython/dist/jython.jar 05_derived_objects.py
2006/11/22 20:34:07 CONFIG INFO Reading infos from configFile: tutorial.conf
2006/11/22 20:34:07 CONFIG INFO Server parameters:
2006/11/22 20:34:07 CONFIG INFO logToScreen: 1
2006/11/22 20:34:07 CONFIG INFO logFile:
2006/11/22 20:34:07 CONFIG INFO protocolVersion: HTTP/1.0
2006/11/22 20:34:07 CONFIG INFO socketHost:
2006/11/22 20:34:07 CONFIG INFO socketPort: 8080
2006/11/22 20:34:07 CONFIG INFO socketFile:
2006/11/22 20:34:07 CONFIG INFO reverseDNS: 0
2006/11/22 20:34:07 CONFIG INFO socketQueueSize: 5
2006/11/22 20:34:07 CONFIG INFO threadPool: 10
2006/11/22 20:34:07 CONFIG INFO sslKeyFile:
2006/11/22 20:34:07 CONFIG INFO sessionStorageType: ram
2006/11/22 20:34:07 CONFIG INFO sessionTimeout: 60 min
2006/11/22 20:34:07 CONFIG INFO cleanUpDelay: 60 min
2006/11/22 20:34:07 CONFIG INFO sessionCookieName: CherryPySession
2006/11/22 20:34:07 CONFIG INFO sessionStorageFileDir:
2006/11/22 20:34:07 CONFIG INFO staticContent: []
2006/11/22 20:34:07 HTTP INFO Serving HTTP on socket: ('', 8080)
2006/11/22 20:34:12 HTTP INFO localhost.localdomain - GET / HTTP/1.1
For this stuff to work, need to patch distutils. I modified distutils
from python 2.4. It works with some changes.
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
regards
Supreet
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|
|
|