Skip to Content
Menu
This question has been flagged
1 Reply
6824 Views

Hi all, I have encountered a problem for several days with the openpyxl libraries on Odoo. I use python 3.7 and I installed the package globally I managed to use it everywhere except with odoo which can not find. Does anyone have any idea please help me out


Traceback (most recent call last):
File "C:\Odoo14\python\lib\site-packages\werkzeug\serving.py", line 306, in run_wsgi
execute(self.server.app)
File "C:\Odoo14\python\lib\site-packages\werkzeug\serving.py", line 294, in execute
application_iter = app(environ, start_response)
File "C:\Odoo14\server\odoo\service\server.py", line 440, in app
return self.app(e, s)
File "C:\Odoo14\server\odoo\service\wsgi_server.py", line 124, in application
return application_unproxied(environ, start_response)
File "C:\Odoo14\server\odoo\service\wsgi_server.py", line 99, in application_unproxied
result = odoo.http.root(environ, start_response)
File "C:\Odoo14\server\odoo\http.py", line 1295, in __call__
return self.dispatch(environ, start_response)
File "C:\Odoo14\server\odoo\http.py", line 1263, in __call__
return self.app(environ, start_wrapped)
File "C:\Odoo14\python\lib\site-packages\werkzeug\middleware\shared_data.py", line 220, in __call__
return self.app(environ, start_response)
File "C:\Odoo14\server\odoo\http.py", line 1450, in dispatch
odoo.registry(db).check_signaling()
File "C:\Odoo14\server\odoo\__init__.py", line 104, in registry
return modules.registry.Registry(database_name)
File "C:\Odoo14\server\odoo\modules\registry.py", line 65, in __new__
return cls.new(db_name)
File "C:\Odoo14\server\odoo\modules\registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Odoo14\server\odoo\modules\loading.py", line 451, in load_modules
force, status, report, loaded_modules, update_module, models_to_check)
File "C:\Odoo14\server\odoo\modules\loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Odoo14\server\odoo\modules\loading.py", line 178, in load_module_graph
load_openerp_module(package.name)
File "C:\Odoo14\server\odoo\modules\module.py", line 358, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "c:\odoo14\server\odoo\addons_custom\Open_Academy\__init__.py", line 1, in
from . import models
File "c:\odoo14\server\odoo\addons_custom\Open_Academy\models\__init__.py", line 1, in
from . import course
File "c:\odoo14\server\odoo\addons_custom\Open_Academy\models\course.py", line 6, in
from openpyxl import load_workbook
ModuleNotFoundError: No module named 'openpyxl' - - -


Avatar
Discard
Best Answer

Hi,

Can you make sure that it is installed in python3.7 itself ?

Run this command and see: python3.7 -m  pip install openpyxl

Also if you are using pycharm, try this method too: https://www.youtube.com/watch?v=nmFcWFX8ABc

Thanks

Avatar
Discard
Related Posts Replies Views Activity
5
Oct 24
28481
1
Jul 23
4401
2
Jul 22
9130
2
Oct 21
1947
0
Aug 21
1179