Hi,
I have a problem with an import in my model:
Traceback (most recent call last):
File "/installdir/web2py/gluon/restricted.py", line 212, in restricted
exec ccode in environment
File "/installdir/web2py/applications/wavilon_portal/models/db.py", line
10, in <module>
import nltk.data
File "/installdir/web2py/gluon/custom_import.py", line 77, incustom_importer
raise ImportError, 'Cannot import module %s' % str(e)
ImportError: Cannot import module 'nltk'
I thought this would be a problem with sys.path, so I am displaying it in
the top of the controller (<sys_path_in_model>)
Then I am doing, manually in the python interpreter:
import sys
sys.path=<sys_path_in_model>
import nltk.data
But this is giving no error!
What is happening here? Is the import mechanism in web2py using something
different than sys,path?
Thanks,
Daniel
--