>From time to time this happens:

python web2py.py -M -S akb2
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2014
Version 2.10.0-beta+timestamp.2014.09.24.13.35.58
Database drivers available: SQLite(sqlite3), MySQL(pymysql),
MySQL(MySQLdb), PostgreSQL(psycopg2), PostgreSQL(pg8000), IMAP(imaplib)
Traceback (most recent call last):
  File "/home/js/web2py/gluon/restricted.py", line 224, in restricted
    exec ccode in environment
  File "applications/akb2/models/db1.py", line 3, in <module>
    from applications.akb2.modules.pretty import *
  File "/home/js/web2py/gluon/custom_import.py", line 105, in
custom_importer
    return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ImportError: No module named akb2.modules.pretty


But the module is there.

When I add


sys.path is reported as

['', '/home/js/web2py/gluon', '/home/js/web2py/site-packages',
'/home/js/web2py',
'/usr/local/lib/python2.7/dist-packages/tiffany-0.6-py2.7.egg',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/home/js/.local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']


Why is this happening.  Yesterday with the same code there was no error
message.

Regards
Johann


-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to