Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

ModuleNotFoundError: No module named 'models' #3

Closed
satriani-vai opened this issue Dec 13, 2017 · 4 comments
Closed

ModuleNotFoundError: No module named 'models' #3

satriani-vai opened this issue Dec 13, 2017 · 4 comments

Comments

@satriani-vai
Copy link

2017-12-13 23:53:21,406 6720 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/home/alex/Odoo/odoo_11/odoo/service/server.py", line 252, in app
return self.app(e, s)
File "/home/alex/Odoo/odoo_11/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/home/alex/Odoo/odoo_11/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/home/alex/Odoo/odoo_11/odoo/http.py", line 1297, in call
self.load_addons()
File "/home/alex/Odoo/odoo_11/odoo/http.py", line 1319, in load_addons
m = import('odoo.addons.' + module)
File "/home/alex/Odoo/odoo_11/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 22, in

ModuleNotFoundError: No module named 'models'

@keshrath
Copy link
Member

which app did you install?

@satriani-vai
Copy link
Author

Just all the apps inside the MuK Documents here: https://apps.odoo.com/apps/modules/11.0/muk_dms/
This error occurs when muk_web_client_refresh is in the Addons folder.

@keshrath
Copy link
Member

keshrath commented Dec 14, 2017

inside the __init__.py change import models to from . import models

@satriani-vai
Copy link
Author

Thank you.
Same for muk_web_preview_attachment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants