can you check the file is there and __init__.py is in every parent folder?
On Jun 9, 10:01 am, Stavros <[email protected]> wrote: > Has anyone who has used latest debian package been able to import > modules while keeping the application self contained? I have the > traceback from another user's application. > > First line of default.py > question_maker = local_import('question_maker') > > then when you run it... > > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/gluon/restricted.py", line 192, > in restricted > exec ccode in environment > File "/home/jelkner/web2py/applications/mathquiz/controllers/ > default.py", > line 1, in <module> > question_maker = local_import('question_maker') > File "/usr/lib/pymodules/python2.6/gluon/compileapp.py", line 246, in > <lambda> > local_import_aux(name,reload,app) > File "/usr/lib/pymodules/python2.6/gluon/compileapp.py", line 177, > in local_import_aux > module = __import__(name) > File "/usr/lib/pymodules/python2.6/gluon/custom_import.py", line > 280, in __call__ > fromlist, level) > File "/usr/lib/pymodules/python2.6/gluon/custom_import.py", line 75, > in __call__ > level) > ImportError: No module named mathquiz.modules.question_maker

