I am not sure where to start troubleshooting a new issue.  My project
uses Django + Appengine Patch + ReportLab (not-zipped).  Up to now,
everything has worked without any problems.  Recently, I updated both
the Appengine SDK (from v. 18 to the current version) as well as
AppEnginePatch from Feb 18 version to the Jun 23 version.

Now, when I access a view that requires ReportLab Imports, everything
works perfectly the first time.  Then, if I make any changes in my
project (save any .py file), and try to re-enter the screen that
requires ReportLab imports, I get the following error:
          "Tried list_reports in module twareports.reports. Error was:
'HardenedModulesHook' object has no attribute '_files'"

Nothing clears the issue (e.g. restart Python, restart dev_server,
etc.)  - unless I manually delete the file:
  C:\tw\reportlab\lib\utils.pyc (yes - the pyc file) - or modify the C:
\tw\reportlab\lib\utils.py file and save it.

Then the app works normally, until I make another change to any
module, which brings me back into the error state.

So in summary:
   1.  This is a problem that started after updating from Django 1.0
to 1.02 (via updating Appenging patch).
   2.  At the same time, I updated the Appengine SDK.

Can anyone provide guidance as to where to start looking for a
solution to this issue?  Is it a Django issue?  A SDK issue?

btw - seems to work just fine on the Production Server (so far...)

johnP

Stacktrace...:
Exception in request:
Traceback (most recent call last):
  File "C:\tw\common\zip-packages\django-1.0.2.zip\django\core\handlers
\base.py"
, line 77, in get_response
  File "C:\tw\common\zip-packages\django-1.0.2.zip\django\core
\urlresolvers.py",
 line 185, in resolve
  File "C:\tw\common\zip-packages\django-1.0.2.zip\django\core
\urlresolvers.py",
 line 185, in resolve
  File "C:\tw\common\zip-packages\django-1.0.2.zip\django\core
\urlresolvers.py", line 124,
 in resolve
  File "C:\tw\common\zip-packages\django-1.0.2.zip\django\core
\urlresolvers.py", line 136,
 in _get_callback
ViewDoesNotExist: Tried list_reports in module twareports.reports.
Error was:
 'HardenedModulesHook' object has no attribute '_files'
INFO:root:"GET /secure/reports/ HTTP/1.1" 500 -
DEBUG:root:No need to update index.yaml
--~--~---------~--~----~------------~-------~--~----~
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