Can you try rename it? You are importing something else. On Monday, 23 September 2013 23:04:30 UTC-5, 黄祥 wrote: > > @massimo > */test/controllers/default.py* > from gluon.custom_import import track_changes; track_changes(True) > import test > def index(): > return str(dir(test)) > > *['__builtins__', '__doc__', '__file__', '__loader__', '__name__', > '__package__', '__path__']* > > @anthony > i've already restarted web2py and still get the same error > > btw, i create the application from scratch using 2.6.4-stable on windows > 7, copy paste what i learned from book. > ref: > > http://web2py.com/books/default/chapter/29/04/the-core#Accessing-the-API-from-Python-modules > > best regards, > stifan >
-- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.