Reverting to Google SDK 1.1.19 resolves the issue. Any hints about how to work around this issue with the current SDK?
Thanks - johnP On Jul 1, 4:38 pm, johnP <[email protected]> wrote: > More Debug Info - > > The specific failure point is: > > for name in ('T1SearchPath','TTFSearchPath','CMapSearchPath'): > P=[] > for p in _SAVED[name]: > d = (p % D).replace('/',os.sep) > ----->>>> if rl_isdir(d): P.append(d) > _setOpt(name,P) > > which rl_isdir is in the the module, \reportlab\lib\utils.py: > > def rl_isdir > (pn,os_path_isdir=os.path.isdir,os_path_normpath=os.path.normpath): > if os_path_isdir(pn): return True > if _isFSD or __loader__ is None: return False > pn = _startswith_rl(os_path_normpath(pn)) > if not pn.endswith(os.sep): pn += os.sep > return len(filter(lambda x,pn=pn: x.startswith > (pn),__loader__._files.keys()))>0 > > I'm assuming __loader__ is being ??? by ??? > > Thanks for any pointers :) > > johnP > > On Jul 1, 3:59 pm, johnP <[email protected]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
