Error..please help

3 views
Skip to first unread message

Victor

unread,
Jul 22, 2008, 1:37:22 AM7/22/08
to Google App Engine
Getting the following error while running in google apps engine (see
error stack).
Has anyone else encountered this error? Can you suggest any solutions
or workarounds?

pyparsing.py", line 3284, in getTokensEndLoc
fstack = inspect.stack()
File "/base/python_dist/lib/python2.5/inspect.py", line 884, in
stack
return getouterframes(sys._getframe(1), context)
File "/base/python_dist/lib/python2.5/inspect.py", line 865, in
getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/base/python_dist/lib/python2.5/inspect.py", line 836, in
getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/base/python_dist/lib/python2.5/inspect.py", line 386, in
getsourcefile
for suffix, mode, kind in imp.get_suffixes():
AttributeError: 'module' object has no attribute 'get_suffixes'


Thanks
Victor

abridgedEdition

unread,
Jul 22, 2008, 10:41:37 AM7/22/08
to Google App Engine
Paste your model definition.

Sometimes I get a similar error in one of two cases:

A) I have recently edited my model definition, in which case sometimes
I have to restart dev_appserver.py. This appears to be a
dev_appserver issue, but since it works with a restart, few have
complained so far.
B) I have two ReferenceProperties of the same reference_class type.
In this case, you need to manually set one of their names to
differentiate it from the other one (again, undocumented but it kind
of makes sense).

Hope that helps
--Drew

Paul McGuire

unread,
Jul 23, 2008, 3:06:35 AM7/23/08
to Google App Engine
On Jul 22, 12:37 am, Victor <vax3...@gmail.com> wrote:
> Getting the following error while running in google apps engine (see
> error stack).
> Has anyone else encountered this error? Can you suggest any solutions
> or workarounds?
>

I can suggest a workaround, but I need to see more of your grammar. I
suspect you are using the keepOriginalText parse action, which uses
the getTokensEndLoc method. As I posted on your other thread, I have
a better approach to solving this problem (which I will include in
pyparsing 1.5.1) which does not require the inspect module to peek up
the call stack. If you would post your grammar on the pyparsing wiki
(pyparsing.wikispaces.com), I'll show you how to get rid of
keepOriginalText, and take a different approach.

-- Paul
Reply all
Reply to author
Forward
0 new messages