Arrgh! spoke too soon. Problem reappeared the second time I visited
the index page. Here's the ticket ...
Error traceback
Traceback (most recent call last):
File "/Users/mellis/sources/trunk/python/web2py/gluon/
restricted.py", line 107, in restricted
exec ccode in environment
File "/Users/mellis/sources/trunk/python/web2py/applications/pda/
controllers/default.py", line 10, in <module>
import rewriter
ImportError: No module named rewriter
In file: /Users/mellis/sources/trunk/python/web2py/applications/pda/
controllers/default.py
# coding: utf8
#########################################################################
## This is a samples controller
## - index is the default action of any application
## - user is required for authentication and authorization
## - download is for downloading files uploaded in the db (does
streaming)
## - call exposes all registered services (none by default)
#########################################################################
import rewriter
<snip>
and here's the console output from the time I restarted web2py:
WARNING:root:unable to import dbhash
default applications appear to be installed already
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2009
Version 1.64.3 (2009-06-19 07:35:40)
Database drivers available: SQLite3
Starting cron...
please visit:
http://127.0.0.1:8000
use "kill -SIGTERM 14006" to shutdown the web2py server
DEBUG:pda:web2py application pda starting
and, finally, here's an ls of my application's directories:
michael-elliss-macbook:trunk mellis$ ls -R python/web2py/applications/
pda
ABOUT app.log databases modules tests
LICENSE cache errors private uploads
__init__.py controllers languages sessions views
__init__.pyc cron models static
python/web2py/applications/pda/cache:
cache.lock
python/web2py/applications/pda/controllers:
appadmin.py default.py default.py.bak
python/web2py/applications/pda/cron:
python/web2py/applications/pda/databases:
<snip>
python/web2py/applications/pda/errors:
<snip>
python/web2py/applications/pda/languages:
fr-fr.py it.py pl.py pt-pt.py
it-it.py pl-pl.py pt-br.py pt.py
python/web2py/applications/pda/models:
db.py log.py menu.py
db.py.bak log.py.bak menu.py.bak
python/web2py/applications/pda/modules:
__init__.py __init__.pyc rewriter.py rewriter.py.bak rewriter.pyc
python/web2py/applications/pda/private:
python/web2py/applications/pda/sessions:
<snip>
python/web2py/applications/pda/static:
base.css calendar.css calendar.js jquery.js title.png
python/web2py/applications/pda/tests:
python/web2py/applications/pda/uploads:
python/web2py/applications/pda/views:
appadmin.html generic.json layout.html.bak
askuser.html.bak generic.rss layout.original.html
default generic.xml web2py_ajax.html
generic.html layout.html
python/web2py/applications/pda/views/default:
askuser.html index.html
askuser.html.bak user.html
Any help appreciated.
Thanks,
Mike