Skip to Content
Menu
This question has been flagged
2 Replies
7726 Views

I would like to ask, if there any solutions for the issues on CentOS:

File "/usr/bin/openerp-server", line 5, in <module> pkg_resources.run_script('openerp==7.0-20131008-231022', 'openerp-server') File "/usr/lib/python2.6/site-packages/setuptools-1.1.6-py2.6.egg/pkg_resources.py", line 492, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.6/site-packages/setuptools-1.1.6-py2.6.egg/pkg_resources.py", line 1350, in run_script execfile(script_filename, namespace, namespace) File "/usr/lib/python2.6/site-packages/openerp-7.0_20131008_231022-py2.6.egg/EGG-INFO/scripts/openerp-server", line 5, in <module> openerp.cli.main() AttributeError: 'module' object has no attribute 'cli'

Thanks

Avatar
Discard
Best Answer

This seems more about the issue of access to the OpenERP server files. Check this, might help : http://www.serpentcs.com/serpentcs-how-to-install-openerp-on-centos

Avatar
Discard
Best Answer

Make sure you have installed all the Python dependencies before installing OpenERP. Most of them are only available from the Fedora repository.

Note: I have insufficient karma to post links, so remember to add the http prefix in the rpm command below.

rpm -ivh dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum -y install graphviz ghostscript PyGreSQL python-dateutil python-feedparser python-gdata python-ldap python-lxml python-xlrd python-mako python-openid python-psycopg2 python-babel python-pycha pydot pyparsing python-reportlab python-simplejson pytz python-vatnumber python-vobject pywebdav python-werkzeug python-yaml  python-imaging python-matplotlib python-psutil gcc

Here is how I install the nightly build. Note: I have insufficient karma to post links, so remember to add the http prefix in the wget command below.

cd /tmp/
wget nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz
tar -zxvf openerp-7.0-latest.tar.gz --transform 's!^[^/]\+\($\|/\)!openerp\1!'
cd openerp
python setup.py install
rm -f /usr/local/bin/openerp-server
cp openerp-server /usr/local/bin
cp install/openerp-server.init /etc/init.d/openerp
cp install/openerp-server.conf /etc
chown openerp:openerp /etc/openerp-server.conf
chmod u+x /etc/init.d/openerp
/sbin/chkconfig --level 35 openerp on
/etc/init.d/openerp start
Avatar
Discard
Author

David, Thanks!:)

Tried your recommendations, but still no result.

Traceback (most recent call last): File "/usr/bin/openerp-server", line 5, in <module> pkg_resources.run_script('openerp==7.0-20131009-231130', 'openerp-server') File "/usr/lib/python2.6/site-packages/setuptools-1.1.6-py2.6.egg/pkg_resources.py", line 492, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.6/site-packages/setuptools-1.1.6-py2.6.egg/pkg_resources.py", line 1350, in run_script execfile(script_filename, namespace, namespace) File "/usr/lib/python2.6/site-packages/openerp-7