Odoo Help

Welcome!

This community 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.

1

Where is Python located in OPENERP7 All-in-one?

By
dark
on 5/28/13, 8:59 AM 1,490 views

Hi boys, please, I need install module which use pymysql. (when i try to install this openerp module, I get error : No module named pymysql)

So, when I searched for python in my windows host computer, where is installed OPENERP server, I dont´t found it. Is this integrated into OpenERP server? Is some solution, how can I install pymysql module?

I use OPENERP7 server on windows XP.

Many thanks, Petr

0
Antanas
On 5/28/13, 9:57 AM
  1. Pymysql is a Python library, so you have to install it "into" your Python (or for Python, to be exact).
  2. Python is not bundled with OpenERP, it must be installed on your computer separately.

So, if your module requires pymysql, first install this library for python, then restart your OpenERp server (maybe restarting a computer would be a good idea when on Windows, just guessing), and after that install your module.

If Openerp server runs on your computer, then you must already have python installed too. Now to install pymysql, you coud first install PIP (python package manager), then in command line type:

pip search pymysql

Pip will search for this library and give a list of libraries that match this name. Then:

pip install pymysql

You may have to replace "pymysql" with another name from search list. If installed, you may proceed to installing Openerp module.

Many thanks for your help. I thought OPENERP is based on python :-) OK, I will go install python and test it. Petr

dark
on 5/28/13, 10:20 AM

Note that if Openerp server is running on your machine succesfully, then Python IS already installed. Maybe it came from OpenERP package then (i could be wrong in my answer), if you did not install it separately. But still, you could try to install pip and then the library you need.

Antanas
on 5/28/13, 10:23 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 5/28/13, 8:59 AM
Seen: 1490 times
Last updated: 3/16/15, 8:10 AM