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

    Hello, I'm quite new in Phyton, and struggling with strange issue. My interperter can not resolve any import OPENERP, did I wrongly installed it? How to add this library to enviroment? Thanks in advance :)    

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

(4 years later...)

I had the same issue and successfully resolved it by setting up correctly the "Content Root" in "Settings / Project / Project Structure".

You have to set the root folder of your installed odoo/openerp  there.

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

What are you using,Pycharm or Eclipse?

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

Roman,

It is a common issue when installing odoo 10. I don't know what you are installing

It's solution is

Small change in odoo-server file
Put odoo instead of openerp


#!/usr/bin/env pythonimport openerp
import openerp
if __name__ == "__main__":
    openerp.cli.main()

to

#!/usr/bin/env pythonimport odoo
import odoo
if __name__ == "__main__":
    odoo.cli.main()


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

It gives error please guide me,

C:\Python27\python.exe D:/odoo_10.0e.latest/odoo-10.0-e-20170412/odoo-server.py D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo.conf Traceback (most recent call last):

  File "D:/odoo_10.0e.latest/odoo-10.0-e-20170412/odoo-server.py", line 2, in <module>

    import odoo

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\__init__.py", line 60, in <module>

    import modules

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\modules\__init__.py", line 8, in <module>

    from . import db, graph, loading, migration, module, registry

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\modules\graph.py", line 13, in <module>

    import odoo.osv as osv

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\osv\__init__.py", line 4, in <module>

    import osv

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\osv\osv.py", line 4, in <module>

    from ..exceptions import except_orm

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\exceptions.py", line 15, in <module>

    from tools.func import frame_codeinfo

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\tools\__init__.py", line 8, in <module>

    from misc import *

  File "D:\odoo_10.0e.latest\odoo-10.0-e-20170412\odoo\tools\misc.py", line 22, in <module>

    import werkzeug.utils ImportError: No module named werkzeug.utils

Process finished with exit code 1

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 18
9251
2
thg 8 25
422
1
thg 8 25
212
1
thg 8 25
829
0
thg 8 25
120