The windows command window doesn't support copy or cut so I can't grab
a trace.  (I don't run inside the launcher or with a programming
environment.)

the import error was on line 27 of handler.py, specifically "from
google.appengine.ext import deferred".  It said that it couldn't find
deferred.  Occasionally "import google.appengine.ext.deferred as
deferred" would work.

I also had problems with ereporter/ereporter.py, specifically line
163, "frames = traceback.extract_tb(trace)".  traceback was None even
though it is imported on line 78.

Yes, I tried restarting everything and deleting all of the .pyc files.

However, all is well today with both.  Grr.  I'll retry just to
verify.

Argh.  I spoke too soon - I can trigger what looks like the same
problem with ereporter/report_generator.py.

type 'exceptions.ImportError'>: cannot import name ereporter
      args = ('cannot import name ereporter',)
      message = 'cannot import name ereporter'

The next thing up the call stack is dev_appserver.py,
ExecuteOrImportScript, line 2121, "exec module_code in
script_module.__dict__".  Above that is ExecuteCGI, line 2225.  Above
that is Dispatch, line 2315.

This is being triggered by ereporter/report_generatory.py, line 48,
which is "from google.appengine.ext import ereporter".  It's right
after "from google.appengine.ext import db" so I don't suspect a path
problem.

I can fairly reliably trigger this exception by going to the ereporter
page before I visit any other page.  If I go to some other page before
going to the ereporter page, the import error doesn't happen.

Which reminds me, using "debug" as an ereporter option is unfortunate
- the development environment sometimes throws up an overlay when it
sees that option.  (Ereporter can also do with a "today" or "all" date
option.)

Thanks,
-andy


On Dec 9, 4:33 am, "Nick Johnson (Google)" <[email protected]>
wrote:
> Hi Andy,
>
> What import errors do you get, and under what circumstances?
>
>
>
>
>
> On Tue, Dec 8, 2009 at 11:51 PM, Andy Freeman <[email protected]> wrote:
> > As of 1.2.8, the handler in google/appengine/ext/deferred/deferred.py
> > (imported by google/appengine/ext/deferred/__init__.py) says to use
> > google/appengine/ext/deferred/handler.py as the handler instead,
> > citing possible import errors.
>
> > I get import errors in my development environment (windows xp, python
> > 2.5.2 (r252:60911 on win32) when I use handler.py but not when I use
> > deferred.py.
>
> > Any ideas what I'm doing differently?  Is this going to bite me in
> > production?
>
> > Thanks,
> > -andy
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to