Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1659 Lượt xem


​In ODOO I have installed python 'searoute' package, but it give me following error. The problem is that every time I restart the ODOO service the execute without any error but after some time it gives the same error that module not found even though it is present if I again restart ODOO service the error goes why this problem occurs please give me steps to resolve this issue that it unable to locate python package after some time.

RPC_ERROR


Odoo Server Error


Occured on localhost:8069 on model ir.module.module and id 18 on 2024-12-27 03:45:49 GMT


Traceback (most recent call last):

    __import__(qualname)

  from . import sea_route_tracker

  "sea_route_tracker.py", line 4, in <module>

 import searoute as sr

ModuleNotFoundError: No module named 'searoute'


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I have checked the that whether searoute is installed or not also i have reinstalled the package but problems is when i restart the odoo code from VSCode it give the no module found error  but when i restart odoo from the services it works fine, every time when I restart from vscode it give same error so I need to restart the service itself. Also if when shut down PC and again after starting directly open localhost:8069 then it give internal server error due to no module found error and if i again restart the ODOO from services it works fine.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Prajwal,

I Hope you are doing well,
​ 

​check if search searoute is installed:
​-  
pip show searoute
If it's not listed, install it:
pip install searoute

​else Reinstall searoute to refresh it:
​pip uninstall searoute

​pip install searoute


I hope this msg help for you

Thanks & Regards
Kunjan Patel

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
2070
4
thg 4 24
175276
0
thg 12 23
2759
5
thg 7 25
231047
1
thg 12 22
3946