Looks like prior to 2.15, when starting up and calling gluon.admin.create_missing_folders, "gluon" was added to sys.path, so you could import modules in gluon without prefixing with "gluon.". For some reason, "gluon" is no longer added to sys.path in 2.15, so you have to specify "gluon." when importing modules from gluon.
Note, this is not a change in API, as the documentation has always specified imports with the "gluon." prefix (i.e., you should have been specifing gluon.storage rather than relying on the undocumented behavior). Anthony On Wednesday, August 30, 2017 at 3:54:52 AM UTC-4, mweissen wrote: > > After an upgrade to 2.15.3 my application did not find "storage". > I had to change > > from storage import Storage > > > to > > from gluon.storage import Storage > > > > > Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > > Traceback (most recent call last): > File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted > exec(ccode, environment) > File "/home/www-data/web2py/applications/secure/models/mylib.py" > <https://sx.infosms.org/admin/default/edit/secure/models/mylib.py>, line 14, > in <module> > from storage import Storage > File "/home/www-data/web2py/gluon/custom_import.py", line 104, in > custom_importer > raise ImportError(e1, import_tb) # there an import error in the module > ImportError: (ImportError('No module named storage',), <traceback object at > 0x7ff6cdbc4638>) > > Error snapshot [image: help] > <https://sx.infosms.org/admin/default/ticket/secure/62.46.34.69.2017-08-30.09-43-02.ab8b4dda-a3dc-4958-9d64-dc0fc1c973af#> > > <type 'exceptions.ImportError'>((ImportError('No module named storage',), > <traceback object at 0x7ff6cdbc4638>)) > > > ​Regards, Martin​ > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

