could u give me the whole source code?
On Nov 18, 9:13 pm, "Sharp-Developer.Net"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've just found the problem.
>
> In my middleware I've imported a models module that was importing a
> data access layer that was importing flickr api that was importing
> urllib that I guess was the root cause.
>
> What is pitty is that functions that used flickr api was not used on
> any of the pages that were down.
>
> I'm very new to Python so this behavior was unexpected for me.
>
> Do you think there is any chance to improve stact trace for such kind
> of "import" issues?
>
> So we could see the whole chain of how the restricted module was
> referenced.
> --
> Alex
>
> On Nov 19, 1:43 am, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
>
> > What middleware are you loading in your Django settings?
>
> > -Marzia
>
> > On Tue, Nov 18, 2008 at 5:29 PM, Sharp-Developer.Net <
>
> > [EMAIL PROTECTED]> wrote:
>
> > > My application "mixedbreedpets" went completly down after my today's
> > > upload.
>
> > > Url:http://www.mixedbreedpets.com/
>
> > > Error:
> > > <class 'django.core.exceptions.ImproperlyConfigured'>: Error importing
> > > middleware middleware.website_config: "No module named subprocess"
> > > Traceback (most recent call last):
> > > File "/base/data/home/apps/mixedbreedpets/3.329385257970052205/
> > > main.py",
> > > line 45, in <module>
> > > main()
> > > File "/base/data/home/apps/mixedbreedpets/3.329385257970052205/
> > > main.py",
> > > line 42, in main
> > > util.run_wsgi_app(application)
> > > File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > > util.py",
> > > line 76, in run_wsgi_app
> > > result = application(env, _start_response)
> > > File "/base/data/home/apps/mixedbreedpets/3.329385257970052205/django/
> > > core/handlers/wsgi.py",
> > > line 228, in __call__
> > > self.load_middleware()
> > > File "/base/data/home/apps/mixedbreedpets/3.329385257970052205/django/
> > > core/handlers/base.py",
> > > line 40, in load_middleware
> > > raise exceptions.ImproperlyConfigured, 'Error importing middleware
> > > %s: "%s"' % (mw_module, e)
> > > <class 'django.core.exceptions.ImproperlyConfigured'>: Error importing
> > > middleware middleware.website_config: "No module named subprocess"
>
> > > Localy everything works just fine.
>
> > > I did not change the file "website_config" much and even rolled back
> > > all changes for that file when got the error - but no luck.
>
> > > Unfortunally I do not have previous version at GAE (did not change
> > > version in app.yaml) so can not rollback to prev vsion number in app
> > > engine admin console.
>
> > > As I menthioned uploading previous version of code does not help.
>
> > > And I do not see any references of "subprocess" module in my code.
>
> > > Would apreciate if you could give me any ideas/instructions.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---