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.

Reply via email to