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.

3

How to know the right directory for a python routine?

By
ton123
on 3/15/13, 8:00 AM 1,832 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.

ton123
on 3/15/13, 8:07 AM
3

Gustavo

--Gustavo--
950
| 2 1 4
Buenos Aires, Argentina
--Gustavo--

Python developer, big fan of sailing

Gustavo
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.

ton123
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
0
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.

ton123
on 1/3/14, 2:24 PM

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

2 follower(s)

Stats

Asked: 3/15/13, 8:00 AM
Seen: 1832 times
Last updated: 3/29/16, 7:15 AM