Odoo Help


ImportError: No module named mx

v7 mx
on 3/23/13, 7:50 AM 17,251 views

hello, I can not install the module in hotel management open erp v7 an error that occurred is as follows:

OpenERP Server Error

Client Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\http.py", line 195, in dispatch File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\controllers\main.py", line 1082, in call_button File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\controllers\main.py", line 1070, in _call_kw File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\session.py", line 43, in proxy File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\session.py", line 31, in proxy_method File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\session.py", line 104, in send

Server Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\web\session.py", line 90, in send File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\netsvc.py", line 295, in dispatch_rpc File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\service\web_services.py", line 614, in dispatch File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\osv\osv.py", line 169, in execute_kw File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\osv\osv.py", line 123, in wrapper File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\osv\osv.py", line 179, in execute File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\osv\osv.py", line 166, in execute_cr File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\base\module\module.py", line 425, in button_immediate_install File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\base\module\module.py", line 476, in _button_immediate_function File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\pooler.py", line 39, in restart_pool File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\modules\registry.py", line 214, in new File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\modules\loading.py", line 347, in load_modules File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\modules\loading.py", line 258, in load_marked_modules File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\modules\loading.py", line 161, in load_module_graph File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\modules\module.py", line 405, in load_openerp_module File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server.\openerp\modules\module.py", line 133, in load_module File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\hotel__init__.py", line 21, in <module> File "C:\Program Files\OpenERP 7.0-20130207-002327\Server\server\openerp\addons\hotel\hotel.py", line 24, in <module> ImportError: No module named mx

I need help and thank's

problem resolved http://bazaar.launchpad.net/~dhwani-serpentcs/hotel-management-system/hotel-7.0/revision/22?start_revid=22

on 3/26/13, 12:03 PM
Dharmesh Rathod
On 6/1/13, 11:44 AM


For windows, you can download from this location : http://www.egenix.com/products/python/mxBase/

For Linux : you can execute this command : sudo easy_install egenix-mx-base

Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com

Why add your contact information into answer? good answer, but I guess you shouldn't add that information here, but you got my vote. I would like to add into your answer in archlinux already has this package `pacman -S python2-egenix-mx-base` installs the package on system or you can use `pip install egenix-mx-base`.

Rui Andrada
on 11/1/14, 6:07 PM
Amit Bhavsar (amb)
On 6/1/13, 10:55 AM

Another way to solved this,

follow the below step : 1) download package form download.egenix.com downloads.egenix.com/python/egenix-mx-base-3.2.3.win32-py2.6.prebuilt.zip?baseurl=http%3A%2F%2Fdownloads.egenix.com%2Fpython%2F&product=egenix-mx-base&version=3.2.3&platform=win32&python=py2.6.prebuilt.zip 2)extract the file 3) copy the mx folder form the extracted file to C:\Program Files\OpenERP 6.1-1\server 4) restart

great, it works!

Ha Doan
on 10/21/13, 1:05 PM
On 2/10/16, 4:19 PM

You can install mx module by typing at the command prompt:

pip install egenix-mx-base

pip install egenix-mx-base
for Windows:

python -m pip install egenix-mx-base

if you do not have pip:

just install it by downloading get-pip.py from https://bootstrap.pypa.io/get-pip.py

then run it with:

python -m get-pip.py


--Borni DHIFI--
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 


Skype : dhifi.borni

On 3/23/13, 8:33 AM

hotel\hotel.py line 24 : from mx import DateTime

"No module named mx " --> a module named mx does not exist.

know that the mx python library is available.

psycopg 2.4.2+ resolve your problem.

thank's for your answer Can you explain a little how to install psycop2.4.2 in my windows?

on 3/24/13, 3:02 PM

Project : http://www.initd.org/psycopg/

on 3/25/13, 6:52 AM

Windows download : http://www.stickpeople.com/projects/python/win-psycopg/

on 3/25/13, 6:52 AM

Hi, we have a Windows all-in-one installation v6.1 running on a separate machine to our v7. On the v6.1 installation, having followed the comments here above successfully, we still get the "ImportError: No module named mx" error when installing modules. We even installed the egenix mx modules but still the same error. It looks as though OpenERP v6.1 does not realise that the above modules have been installed. (Python 2.5)

Any ideas where we are going wrong or how to tell OpenERP that the modules mx are actually installed?

Cygnia, Ev Lav
on 5/10/13, 8:34 PM
On 3/23/13, 8:26 AM

You should ask the hotel module developer, since the module developer (to the best of my knowledge Hotel module is not part of the OpenERP core) has more information on how it is configured. Having said that, you do not have the mx python module installed in your server

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 3/23/13, 7:50 AM
Seen: 17251 times
Last updated: 4/9/16, 6:24 AM