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 On Jun 26, 10:20 am, MikeEllis <michael.f.el...@gmail.com> wrote: > I just ran into what may be the same problem. I created a python > module in my apps modules directory and it showed up in the admin page > listings, could be edited, etc, but trying to import in a controller > kept failing. After I restarted web2py, the import succeeded. Is > there some documentation regarding what should be expected with regard > to importing new or changed modules, either from the modules directory > or from other locations in sys.path? I bought a copy of the manual and > read it, but it doesn't seem to address this issue. Having to restart > the server doesn't seem like the best of all possible worlds :-) > > Thanks, > Mike > > On May 29, 10:02 am, mika <miss.from.h...@gmail.com> wrote: > > > Ok, now it seems to work. > > But I don't exactly know where was the problem ;) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---