Problem with start-wiki20.py

4 views
Skip to first unread message

Louise

unread,
Jul 23, 2008, 9:33:21 AM7/23/08
to TurboGears
Hi,

I've installed Turbogears 1.0.5 and am using debian etch, however when
I run start-wiki20.py I get traceback and http://localhost:8080/ still
gives me an error message,


2008-07-23 14:10:57,784 cherrypy.msg INFO CONFIG: Server parameters:
2008-07-23 14:10:57,785 cherrypy.msg INFO CONFIG:
server.environment: developm ent
2008-07-23 14:10:57,785 cherrypy.msg INFO CONFIG:
server.log_to_screen: True
2008-07-23 14:10:57,785 cherrypy.msg INFO CONFIG: server.log_file:
2008-07-23 14:10:57,785 cherrypy.msg INFO CONFIG:
server.log_tracebacks: True
2008-07-23 14:10:57,786 cherrypy.msg INFO CONFIG:
server.log_request_headers: True
2008-07-23 14:10:57,786 cherrypy.msg INFO CONFIG:
server.protocol_version: HTT P/1.0
2008-07-23 14:10:57,786 cherrypy.msg INFO CONFIG:
server.socket_host:
2008-07-23 14:10:57,787 cherrypy.msg INFO CONFIG:
server.socket_port: 8080
2008-07-23 14:10:57,787 cherrypy.msg INFO CONFIG:
server.socket_file:
2008-07-23 14:10:57,787 cherrypy.msg INFO CONFIG:
server.reverse_dns: False
2008-07-23 14:10:57,787 cherrypy.msg INFO CONFIG:
server.socket_queue_size: 5
2008-07-23 14:10:57,788 cherrypy.msg INFO CONFIG:
server.thread_pool: 10
Unhandled exception in thread started by <bound method Server._start
of <cherryp y._cpserver.Server object at 0xb7c4264c>>
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/
cherrypy/_cpse rver.py", line 78, in _start
Engine._start(self)
File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/
cherrypy/_cpen gine.py", line 110, in _start
func()
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.5-py2.4.egg/
turbogears/s tartup.py", line 182, in startTurboGears
view.load_engines()
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.5-py2.4.egg/
turbogears/v iew/base.py", line 405, in load_engines
engines[entrypoint.name] = engine(stdvars, engine_options)
File "/usr/lib/python2.4/site-packages/TurboJson-1.1.3-py2.4.egg/
turbojson/jso nsupport.py", line 22, in __init__
self.encoder = jsonify.GenericJSON(**opts)
TypeError: __init__() got an unexpected keyword argument 'indent'

Thanks in advance,

Chris Miles

unread,
Jul 24, 2008, 11:26:07 PM7/24/08
to TurboGears
On Jul 23, 11:33 pm, Louise <louise.antig...@gmail.com> wrote:
> I've installed Turbogears 1.0.5 and am using debian etch, however when
> I run start-wiki20.py I get traceback andhttp://localhost:8080/still
> gives me an error message,
>
[...]
>   File "/usr/lib/python2.4/site-packages/TurboJson-1.1.3-py2.4.egg/
> turbojson/jso nsupport.py", line 22, in__init__
>     self.encoder = jsonify.GenericJSON(**opts)TypeError:__init__()gotanunexpectedkeywordargument'indent'

This has bugged me also, for my existing projects when I've upgraded
TG to 1.0.5. I have found that the fix is to force a TurboJSON
upgrade to 1.2 (which drags in a bunch of upgraded and/or new
packages) then downgrade TurboJSON back to 1.1.3 (fitting with the TG
requirements).

i.e.:
$ easy_install -U TurboJson
$ easy_install -U "TurboJson >= 1.1.3, < 1.2"

The fix must come as part of one of the upgraded/new packages that TJ
1.2 drags in, but I haven't looked at which one that is yet.

Cheers,
Chris Miles

Louise

unread,
Jul 25, 2008, 5:45:24 PM7/25/08
to TurboGears
Thank you very much! I was really very confused, I'll go try that now.
Louise
Reply all
Reply to author
Forward
0 new messages