Odoo Help


How to know the right directory for a python routine?

on 3/15/13, 8:00 AM 2,544 views

I have installed an extra module which needs an extra python routine. It is BeautifulSoup, needed for account_banking. I installed BeautifulSoup.py in a directory of which I thought it should be the right one. There are a lot of other python routines there. Next thing, I stopped and started the service.

However when I try to open to log in the database I get an error with a traceback with: ImportError: No module named BeautifulSoup

I assume OpenERP didn't find the module because it is expecting it in an other directory.

How to find out in which directory OpenERP is looking for this and other routines? Can this be found in some kind of a configuration file?

The answer can also be interest for those who want more than one version of openerp and more than one version of python on one machine. Or for those who use also python for other software on the same machine.

on 3/15/13, 8:07 AM


| 2 2 4
Buenos Aires, Argentina

Python developer, big fan of sailing

On 3/15/13, 9:46 AM

how did you install BeautifulSoup? You should install it with pip or easy_install. Doing so it will be available for your OpenERP installation

Thanks for this advice. But for some reasons it is difficult for me to install via pip or easy_install. Because I think BeautifulSoup is an HTML/XML parser which only need to be put in the right directory I copied BeautifulSoup,py to the directory. In an earlier OE installation I did the same and it worked ok.

on 3/15/13, 11:45 AM

Python 2.7 is correctly installed with easy_install (on Windows 2008 server with OE 7.0), but the external dependency error still exist... Is there not a normal installation procedure for account_banking?

Mark Teunissen
on 9/8/13, 2:02 PM

I have excluded the external dependency and installed account_banking correctly afterall, but then the POS module doesn't work anymore.... EduSense Please create a good installation description...

Mark Teunissen
on 9/8/13, 2:09 PM
Beat Besmer
On 12/12/13, 3:57 AM

pip install beautifulsoup (version 3 NOT beautifulsoup4)

if you don't have pip, install it via apt-get install python-pip

pip helps in handling python-packages. why manual decompress, look for folder, copy, undo-because-wrong, repeat-again... if you can save time (o.k. not always, but sometimes)

if this helped, please vote or close question, if not: write back. thank you

Beat Besmer
on 12/12/13, 3:57 AM

I can't use pip. This is because I make use of a Synology NAS. This NAS do not have theis possibility. And I also can't apt-get ..... on this NAS.

on 1/3/14, 2:24 PM

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/15/13, 8:00 AM
Seen: 2544 times
Last updated: 3/29/16, 7:15 AM