Skip to Content
Menu
This question has been flagged
8 Replies
15839 Views

ImportError: No module named decimal_precision 2014-01-20 19:35:53,480 1892 INFO ? openerp: OpenERP server is running, waiting for connections... 2014-01-20 19:35:53,480 1892 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069 2014-01-20 19:38:51,407 1892 INFO ? werkzeug: 127.0.0.1 - - [20/Jan/2014 19:38:51] "GET / HTTP/1.1" 404 - 2014-01-20 19:38:51,816 1892 INFO ? werkzeug: 127.0.0.1 - - [20/Jan/2014 19:38:51] "GET /favicon.ico HTTP/1.1" 404 - 2014-01-20 20:19:17,698 1892 INFO ? werkzeug: 127.0.0.1 - - [20/Jan/2014 20:19:17] "GET / HTTP/1.1" 404 - 2014-01-20 20:19:20,528 1892 INFO ? werkzeug: 127.0.0.1 - - [20/Jan/2014 20:19:20] "GET / HTTP/1.1" 404 - 2014-01-21 07:39:38,259 1892 INFO ? openerp: OpenERP version 7.0-20140119-002424 2014-01-21 07:39:38,289 1892 INFO ? openerp: addons paths: E:\OpenERP\Server\server\openerp\addons 2014-01-21 07:39:38,289 1892 INFO ? openerp: database hostname: localhost 2014-01-21 07:39:38,289 1892 INFO ? openerp: database port: 5432 2014-01-21 07:39:38,289 1892 INFO ? openerp: database user: openpg 2014-01-21 07:39:42,142 1892 CRITICAL ? openerp.modules.module: Couldn't load module web 2014-01-21 07:39:42,142 1892 CRITICAL ? openerp.modules.module: No module named decimal_precision 2014-01-21 07:39:42,142 1892 ERROR ? openerp.service: Failed to load server-wide module web. The web module is provided by the addons found in the openerp-web project. Maybe you forgot to add those addons in your addons_path configuration. Traceback (most recent call last): File "E:\OpenERP\Server\server.\openerp\service__init__.py", line 60, in load_server_wide_modules File "E:\OpenERP\Server\server.\openerp\modules\module.py", line 415, in load_openerp_module File "E:\OpenERP\Server\server\openerp\addonsweb\http.py", line 628, in wsgi_postload File "E:\OpenERP\Server\server\openerp\addonsweb\http.py", line 517, in __init__ File "E:\OpenERP\Server\server\openerp\addonsweb\http.py", line 580, in load_addons File "E:\OpenERP\Server\server.\openerp\modules\module.py", line 133, in load_module File "E:\OpenERP\Server\server\openerp\addons\magento_integration-develop__init__.py", line 9, in <module> File "E:\OpenERP\Server\server\openerp\addons\magento_integration-develop\magento_.py", line 16, in <module> File "E:\OpenERP\Server\server.\openerp\modules\module.py", line 132, in load_module ImportError: No module named decimal_precision 2014-01-21 07:39:42,206 1892 INFO ? openerp: OpenERP server is running, waiting for connections... 2014-01-21 07:39:42,752 1892 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069

Python 2.7 openERP 7

Avatar
Discard
Author

what is wrong

have u check default openerp decimal_precision module is installed?

Author

he is not established

I think the rout cause is this:

"E:\OpenERP\Server\server\openerp\addons\magento_integration-develop\magento_.py", line 16, in <module> File

You need to clear the decimal_precision unit place in you system. Easy and may dirty way to copy the decimal_precision.py into the E:\OpenERP\Server\server\openerp\addons\magento_integration-develop folder .

Best Answer

This issue occurs when your module is not compatible with current odoo version,

Let say module developed for openerp 7.0 and user trying to install it on odoo 8.0


Solution:

Go to .py file and replace import decimal_precision as dp by  import openerp.addons.decimal_precision as dp


Avatar
Discard
Best Answer

I resolved this issue by manually installing the module named  "decimal_precision" by putting it in the "addons" directory, then clicking on "update modle list" the dependacy was resolved then.

Avatar
Discard

hi, how did you install it manually? thanks

Best Answer

You have a problem with the installation. I am not a Windows expert, but this is what you could do...

  • uninstall OpenERP
  • download the latest version
  • install the latest version and check the installation logs

After that run the application and check the logs to see if you have any problems

Avatar
Discard

BTW, uninstall the magento connector, that is causing the trouble. Or check how the magento module is importing the decimal_precision module, try changing the import line to something like this: import openerp.decimal_precision as decimal_precision