Installation fails on Ubuntu 9.10 with python2.6: python.py installs "import_xml.rng", "base.sql",and other files in wrong location, causing the error "Could not create database" on GTK/Web client

Bug #514368 reported by Inaki Fernandez - OpenERPappliance.com
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

When compiling and installing openerp-server from source code, the same procedure is successful on Ubuntu 8.04, but fails on Ubuntu 9.10:

UBUNTU 8.04:
Installation path: /usr/lib/python2.5/site-packages/openerp-server/

UBUNTU 9.10:
Installation path: /usr/local/lib/python2.6/dist-packages/openerp-server/

PROBLEM:
openerp-server/setup.py puts import_xml.rng, base.sql, and other files under "site-packages" directory. This is correct on Ubuntu 8.04, but not on Ubuntu 9.10.

IMPACT:
User cannot create database from openerp GTK or Web client.

WORKAROUND:
scp -r /usr/local/lib/python2.6/site-packages/openerp-server/* /usr/local/lib/python2.6/dist-packages/openerp-server/

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Ok, it seems to have a bug in the debian packaging :/

Revision history for this message
Mark Guthart (mguthart) wrote :

As possible additional info...
Found that the install placed the first-level directories and their immediate sub-files in the dist-packages directory, but failed to place any subdirectories within these addons directories. (They do show up in the site-packages though).

For example...
In dist-packages (no subdirectories)...
../addons/account/account.py
../addons/account/account_analytic_line.py
../addons/account/account_assert_test.xml
etc.

In site-packages (includes subdirectories)...
../addons/account/data/account_data2.xml
../addons/account/data/account_invoice.xml
../addons/account/demo/account_minimal.xml
etc.
../addons/account/account.py
../addons/account/account_analytic_line.py
etc.

Experienced this with Ubuntu 9.10 and OpenErp 5.0.9.

Revision history for this message
ninaiz (inigo-rekalde) wrote :

I have the same problem with Ubuntu 10.4 and OpenERP 5.0.10

The workaround solved the problem perfectly

Is the same problem reported in the Bug #511347

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.