On Jun 7, 10:38 pm, danto <web2py.n...@gmail.com> wrote: > Traceback (most recent call last): > File "/home/danto/web2py/gluon/restricted.py", line 184, in restricted > passed to RestrictedError to identify where the error occurred. > File "/home/danto/web2py/applications/admin/models/access.py", line > 2, in <module> > from gluon.fileutils import read_file > ImportError: cannot import name read_file > > anyway, I restarted the server through the shell and when I back > session.flash show me that I'm on 1.94, but was wierd
Ok, that function "read_file" is definitely in gluon/fileutils.py in 1.96.4. I guess you just need to restart your web2py, because the gluon files do not get executed on every request, you have to restart the process.