You may have to reload the modules. Maybe restarting web2py helps. mic
2012/6/14 Massimo Di Pierro <[email protected]>: > web2py source or binary? > > > On Thursday, 14 June 2012 13:49:11 UTC-5, codehamster wrote: >> >> Hey guys, >> >> Just started with web2py about 2 weeks ago. Running into a bit of an >> issue with modules import. >> >> I have a module util.py in the modules directory in it, I have something >> like: >> >> from gluon import Storage >> >> class User(object): >> ... >> >> From my controller, I import the module but it won't import. When I use >> the User class, it says it cannot find global name. >> >> If I take the same file and put it in the model directory, everything >> works fine. Another odd thing is that it somehow started working yesterday, >> but stop working today after restarted web2py. >> >> I have the empty __init__.py in the modules directory, and the util.pyc is >> there as well so it compiled fine. I am running on OSX >> >> Any ideas? >> >> Thanks >> >> >> >

