c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #04834
Re: [Bug 676736] Re: wrong openerp deployment in ubuntu lucid with py2.6
On Thursday 18 November 2010, you wrote:
> modules should be located in openerp-server/bin/addons directory.
> Symbolic links are also allowed. Otherwise openerp-server will /never/
> /reach/ its modules...
Sorry, but that's not entirely true.
Addons can be located at any path of the system. As of v6, addons can be
located under _multiple_ locations[1]. All this is configurable from either the
config file or the command line of the server.
But, anyway, the best setup is to allocate the pythonX.x/site-
packages/openerp-server for the server and place[2] the addons under the
/addons/ sub-folder there. Just like the packages do.
[1] this started off as a feature of developers that want to work with multiple
repositories simultaneously, but can be well used in production servers, too.
[2] install them, that is. No need to symlink.
--
Say NO to spam and viruses. Stop using Microsoft Windows!
--
wrong openerp deployment in ubuntu lucid with py2.6
https://bugs.launchpad.net/bugs/676736
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject GTK Client: New
Bug description:
openerp Trunk
revision 5121 of trunk-extra-addons
Ubuntu lucid / python2.6:
A) openerp-server, openerp-web, and openerp-client are deployed in /usr/local/lib/python2.6/dist-packages/
openerp@openerp6desktop:~/production/openerp-client/bin$ ls -F /usr/local/lib/python2.6/dist-packages/
Beaker-1.5.1-py2.6.egg/ Mako-0.2.5-py2.6.egg/ openerp-server/ openerp_web-6.0.0_rc1-py2.6.egg/
CherryPy-3.1.2-py2.6.egg/ easy-install.pth openerp_client-6.0.0_rc1_1.egg-info python_dateutil-1.4.1-py2.6.egg/
FormEncode-1.2.3dev-py2.6.egg/ openerp-client/ openerp_server-6.0.0_rc1.egg-info/ simplejson-2.0.9-py2.6-linux-i686.egg/
openerp@openerp6desktop:~/production/openerp-client/bin$ ls /usr/local/lib/python2.6/dist-packages/openerp-server/
__init__.py import_xml.rng netsvc.pyc osv pychart report server.cert sql_db.py tiny_socket.py wizard
__init__.pyc ir openerp-server.py pooler.py release.py run_tests.py server.pkey sql_db.pyc tiny_socket.pyc workflow
addons netsvc.py openerp-server.pyc pooler.pyc release.pyc run_tests.pyc service test tools
ADDONS DIR IS ALMOST EMPTY:
openerp@openerp6desktop:~/production/openerp-client/bin$ ls /usr/local/lib/python2.6/dist-packages/openerp-server/addons/
__init__.py __init__.pyc base base_quality_interrogation.py base_quality_interrogation.pyc
openerp@openerp6desktop:~/production/openerp-client/bin$
B) openerp-server modules are deployed in other location! : /usr/lib/python2.6/site-packages/openerp-server/
openerp@openerp6desktop:~/production/openerp-client/bin$ ls /usr/lib/python2.6/site-packages/openerp-server/
addons
openerp@openerp6desktop:~/production/openerp-client/bin$ ls /usr/lib/python2.6/site-packages/openerp-server/addons/
account crm_caldav l10n_chart_at product_lot_foundry
account_accountant crm_claim l10n_chart_au product_m2mcategories
account_analytic_analysis crm_claim_refund l10n_chart_be_frnl product_manufacturer
[...]
C) openerp-client is not well deployed either:
openerp@openerp6desktop:~$ openerp-client
cd: 2: can't cd to /usr/lib/python2.6/site-packages/openerp-client
/usr/bin/python: can't open file './openerp-client.py': [Errno 2] No such file or directory
Note that openerp-client is not deployed in /usr/lib/python2.6/site-packages but in /usr/local/lib/python2.6/dist-packages/
openerp@openerp6desktop:~$ ls -l /usr/lib/python2.6/site-packages
total 4
drwxr-xr-x 3 openerp root 4096 Nov 6 17:50 openerp-server
openerp@openerp6desktop:~$
References