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

I am trying to restart openerp , but getting the following error:

No handlers could be found for logger "openerp.addons.base_gengo.wizard.base_gengo_translations" Traceback (most recent call last): File "/usr/bin/openerp-server", line 10, in <module> openerp.cli.main() File "/usr/lib/pymodules/python2.7/openerp/cli/__init__.py", line 51, in main __import__(m) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/account_test/__init__.py", line 1, in <module> import account_test File "/usr/lib/pymodules/python2.7/openerp/addons/account_test/account_test.py", line 32, in <module> import pooler ImportError: No module named pooler

What could be the issue here? How can i resolve this?

Ảnh đại diện
Huỷ bỏ

Duplicate question: https://www.odoo.com/forum/Help-1/question/Why-am-I-getting-no-module-named-pooler-netsvc-etc-when-I-try-to-shut-down-31750

Câu trả lời hay nhất

I have the same problem when i change openerp7 to openerp8.

I solved the problem ImportError: No module named report.

from openerp.report import report_sxw instead of from report import report_sxw in .py

Thanks

 

 

 

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

This is and old question, and actually the module pooler is deprecated as for version >=7.

Nevertheless, this is because this has been moved, you need to do:

    from openerp import pooler

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

I resolved the first issue by prefixing openerp.pooler... i.e import openerp.pooler. Now i am getting the error: No handlers could be found for logger "openerp.addons.base_gengo.wizard.base_gengo_translations" Traceback (most recent call last): File "/usr/bin/openerp-server", line 10, in <module> openerp.cli.main() File "/usr/lib/pymodules/python2.7/openerp/cli/__init__.py", line 51, in main __import__(m) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/account_test/__init__.py", line 2, in <module> import report File "/usr/lib/pymodules/python2.7/openerp/addons/account_test/report/__init__.py", line 1, in <module> import account_test_report File "/usr/lib/pymodules/python2.7/openerp/addons/account_test/report/account_test_report.py", line 25, in <module> from report import report_sxw ImportError: No module named report

How do i resolve the issue of having to prefix...openerp.module?

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

Hi i have the same problem on my wheezy install of OpenERP v7 did you find a way to solve this ... thanks Best regards

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

You need to add one line in your account_test.py.

Just write from openerp import pooler on first line in your account_test.py then restart the OpenERP server.

You can find pooler.py in server->openerp->pooler.py

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
1211
1
thg 12 23
1817
0
thg 11 23
1883
1
thg 5 23
3576
0
thg 4 23
2578