google-code-export / kytten

Automatically exported from code.google.com/p/kytten
1 stars 0 forks source link

need to document the dependencies; traceback using python 2.5 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There is no documentation I could find.

Most important to start with: a description of the dependencies. (My guess,
based on an error message and traceback: pyglet (which version?), and
either python 2.6 or simplejson.)

BTW, the error message is misleading since it suggests that not installing
those things will only lead to a lack of safety, not to the traceback --
perhaps that's is a separate bug? (The traceback occurs with Python 2.5 and
Pyglet 1.1.3 on a Mac. Kytten is from the svn trunk, revision 24.)

% python a_test.py 
Warning: using 'safe_eval' to process json files, please upgrade to Python
2.6 or install simplejson
Traceback (most recent call last):
  File "a_test.py", line 18, in <module>
    "font_size": 14
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/theme.py", line
240, in __init__
    input = json_load(theme_file.read())
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/theme.py", line
22, in json_load
    return safe_eval.safe_eval(''.join(str(expr).split('\r')))
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 64, in safe_eval
    return walker.visit(ast)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 24, in visit
    return meth(node, **kw)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 28, in default
    return self.visit(child, **kw)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 24, in visit
    return meth(node, **kw)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 36, in visitDict
    return dict([(self.visit(k),self.visit(v)) for k,v in node.items])
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 24, in visit
    return meth(node, **kw)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 36, in visitDict
    return dict([(self.visit(k),self.visit(v)) for k,v in node.items])
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 24, in visit
    return meth(node, **kw)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 42, in visitList
    return [self.visit(i) for i in node.nodes]
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 24, in visit
    return meth(node, **kw)
  File
"/Applications/pyglet/web-examples/kytten-read-only/kytten/safe_eval.py",
line 48, in default
    node.__class__,node)
kytten.safe_eval.Unsafe_Source_Error: Line 156.  Unsupported source
construct: compiler.ast.UnarySub
Exit 1

Original issue reported on code.google.com by ores...@gmail.com on 27 Jun 2009 at 10:22