Question
Problem installing odoo 8 (openERP) on digitalocean CentOS 6.5 x32 droplet
I have installed postgresql via yum and installed odoo 8 via rpm downloaded from https://www.odoo.com/page/download.
Everything installed fine with no error.
sudo service openerp start did not do anything. Having a look inside /etc/init.d/openerp and saw that the DAEMON path is incorrect, so I replaced DAEMON=/usr/bin/openerp-server with DAEMON=/usr/local/bin/openerp-server
Then trying to start openerp service, received error on start-stop-daemon. Googled this and installed start-stop-daemon. Now sudo service openerp start says Starting openerp: ok, but openerp is not running! No service is running on port 8069.
No log file available in /var/log/odoo so not sure as to what is wrong.
Running /usr/local/bin/openerp-server directly from bash gave the following error:
ImportError: No module named openerp
Googled this and saw that quite a few people had the same error but couldn’t find solution.
Please advise. Thanks.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
It appears that odoo 8 requires python 2.7, so I have installed python 2.7 following this digitalocean article (https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4).
Then I modified the /usr/local/bin/openerp-server to use #!/usr/bin/python2.7 instead of #!/usr/bin/python
Still getting the same error on No module named openerp but also getting this message:
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
So I added PYTHONHOME=/usr/local/lib/python2.7 to environment variable
Now the message on exec_prefix and $PYTHONHOME are gone but getting different module error
ImportError: No module named site