I've been playing around with Spyce recently, and love
its capabilities. Was quite frustrated with using a
approach for a while.
Before I deploy it in a production environment,
however, I need to get the following debugged:
On some occasions, I get a KeyError with Spyce v1.3.9
running with mod_fastcgi. Normally, the same code works
fine. Infact, the KeyError goes away when I re-try.
When it comes, the KeyError complains about different
Keys. Looks like the error is with the 'include'
module. Here's an example:
Message: KeyError: (17, 'code')
Stack: index.spy:30, in (main):
/opt/spyce/modules/include.py:26, in spyce:
code = self._api.spyceFile(file)
/opt/spyce/spyce.py:517, in spyceFile:
return getServer().spyce_cache[('file', file)]
/opt/spyce/spyceCache.py:131, in __getitem__:
/opt/spyce/spyceCache.py:121, in get:
self.cache[key] = self.generate(key)
/opt/spyce/spyce.py:583, in spyceCacheGenerate:
/opt/spyce/spyce.py:561, in spyceFileCacheGenerate:
s = spyceCode(code, filename=filename)
/opt/spyce/spyce.py:329, in __init__:
self._code, self._coderefs, self._modrefs = \
/opt/spyce/spyceCompile.py:963, in spyceCompile:
ast, libs = parser.processFile(buf, filename, sig)
/opt/spyce/spyceCompile.py:211, in processFile:
/opt/spyce/spyceParser.py:375, in parseSpyce:
result = parser.parse(debug=0,lexer=lexer)
/opt/spyce/yacc.py:328, in parse:
Log in to post a comment.