Hallo Leonel,
Thanks. I did not see that __init__.py was missing. However, the problem
was not solved by doing that.
I stil get:
$ python web2py.py -M -S sakb
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2014
Version 2.9.11-stable+timestamp.2014.09.15.23.35.11
Database drivers available: SQLite(sqlite3), MySQL(pymysql),
PostgreSQL(psycopg2), PostgreSQL(pg8000), IMAP(imaplib)
['', '/home/www-data/web2py/gluon', '/home/www-data/web2py/site-packages',
'/home/www-data/web2py', '/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/sakb/models/db.py", line 128, in <module>
from applications.sakb.modules.pretty import *
File "/home/www-data/web2py/gluon/custom_import.py", line 105, in
custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ImportError: No module named sakb.modules.pretty
and it seems as if that directory is not visited by python as there are no
compiled files. I have added a print statement to show sys.path and that
seems to be normal to me.
Regards
Johann
--
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.