Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1308 (closed defect: worksforme)

Opened 12 years ago

Last modified 12 years ago

jsonify not parsed correctly with Python 2.5 on Mac OS X

Reported by: travis Owned by: anonymous
Priority: normal Milestone: 1.0.2
Component: TurboGears Version: 1.0
Severity: normal Keywords:
Cc:

Description

Here's the traceback (running paster pylons example):

TravisMac:~/svnrepos/travis/code/helloworld travis$ paster serve --reload development.ini 
Starting subprocess with file monitor
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.1.1dev-r6261', 'console_scripts', 'paster')()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.1.1dev_r6261-py2.5.egg/paste/script/command.py", line 76, in run
    invoke(command, command_name, options, args[1:])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.1.1dev_r6261-py2.5.egg/paste/script/command.py", line 115, in invoke
    exit_code = runner.run(args)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.1.1dev_r6261-py2.5.egg/paste/script/command.py", line 210, in run
    result = self.command()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.1.1dev_r6261-py2.5.egg/paste/script/serve.py", line 203, in command
    relative_to=base, global_conf=vars)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteScript-1.1.1dev_r6261-py2.5.egg/paste/script/serve.py", line 226, in loadapp
    **kw)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 193, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 213, in loadobj
    global_conf=global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 237, in loadcontext
    global_conf=global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 267, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 393, in get_context
    section)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 415, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 345, in get_context
    global_conf=global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 237, in loadcontext
    global_conf=global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 274, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 542, in get_context
    object_type, name=name)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PasteDeploy-1.1.1dev_r6258-py2.5.egg/paste/deploy/loadwsgi.py", line 568, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py", line 1830, in load
  File "/Users/travis/svnrepos/travis/code/helloworld/helloworld/__init__.py", line 8, in <module>
    from helloworld.config.middleware import make_app
  File "/Users/travis/svnrepos/travis/code/helloworld/helloworld/config/middleware.py", line 10, in <module>
    import pylons.wsgiapp
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Pylons-0.9.5dev_r1876-py2.5.egg/pylons/wsgiapp.py", line 21, in <module>
    import pylons.templating
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Pylons-0.9.5dev_r1876-py2.5.egg/pylons/templating.py", line 265, in <module>
    Engine = entry_point.load()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg/pkg_resources.py", line 1830, in load
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TurboJson-1.0-py2.5.egg/turbojson/jsonsupport.py", line 3, in <module>
    from turbojson import jsonify
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TurboJson-1.0-py2.5.egg/turbojson/jsonify.py", line 26, in <module>
    jsonify_datetime = jsonify.when('isinstance(obj, datetime.datetime) or isinstance(obj, datetime.date)')(jsonify_datetime)
  File "build/bdist.macosx-10.3-fat/egg/dispatch/functions.py", line 690, in when
  File "build/bdist.macosx-10.3-fat/egg/dispatch/functions.py", line 577, in _decorate
  File "<string>", line 10, in parseRule
  File "build/bdist.macosx-10.3-fat/egg/dispatch/functions.py", line 440, in parseRule
  File "build/bdist.macosx-10.3-fat/egg/dispatch/functions.py", line 326, in parse
  File "build/bdist.macosx-10.3-fat/egg/dispatch/ast_builder.py", line 383, in parse_expr
  File "build/bdist.macosx-10.3-fat/egg/dispatch/ast_builder.py", line 378, in build
KeyError: 304

Change History

comment:1 Changed 12 years ago by alberto

  • Status changed from new to closed
  • Resolution set to worksforme

This looks like an outdated RuleDispatch? problem. Can you try upgrading to latest rev. see if it fixes it?

Please reopen if it doesn't.

Alberto

Note: See TracTickets for help on using tickets.