Looks like the error is being raised in this block of rewrite.py.. is this due to an attempt to interact with the file system?
def load(routes='routes.py'): symbols = {} if not os.path.exists(routes): return try: routesfp = open(routes, 'r') exec routesfp.read() in symbols routesfp.close() logging.info('URL rewrite is on. configuration in %s' % routes) except SyntaxError, e: routesfp.close() logging.error('Your %s has a syntax error. ' % routes + \ 'Please fix it before you restart web2py') raise e On May 8, 5:24 pm, Dane <dane.schnei...@gmail.com> wrote: > I tried this. It works locally, but still having problems when > deployed. Now I'm getting a 500. > > Here's the traceback: > > <type 'exceptions.SyntaxError'>: invalid syntax (<string>, line 1) > Traceback (most recent call last): > File "/base/data/home/apps/tthultimate/1.341813257625966505/ > gaehandler.py", line 42, in <module> > import gluon.main > File "/base/data/home/apps/tthultimate/1.341813257625966505/gluon/ > main.py", line 105, in <module> > rewrite.load() > File "/base/data/home/apps/tthultimate/1.341813257625966505/gluon/ > rewrite.py", line 45, in load > raise e > > On May 8, 5:05 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > Can you try? > > > routes_in = ((/crossdomain.xml', '/init/static/crossdomain.xml'),) > > > On May 8, 11:58 am, Dane <dane.schnei...@gmail.com> wrote: > > > > Hello, > > > > In my routes.py file, I have this line: > > > > routes_in = (('.*:/crossdomain.xml', '/init/static/crossdomain.xml'),) > > > > Working locally, if I go tohttp://localhost:8080/crossdomain.xml, > > > the file is there. > > > > However, when I upload to google app > > > engine,http://www.mydomain.appspot.com/crossdomain.xml > > > gives a 404. The rest of the deployed app is working fine. > > > > Any ideas? > > > > Thanks, > > > > Dane