V6dev - Can't create a new database on fresh installation - missing pixmaps directory

Bug #603028 reported by Jan Verlaan on 2010-07-08
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

[2010-07-08 09:19:53,774] INFO:server:version - 6.0dev
[2010-07-08 09:19:53,775] INFO:server:addons_path - /usr/local/lib/python2.6/dist-packages/openerp-server/addons
[2010-07-08 09:19:53,775] INFO:server:database hostname - localhost
[2010-07-08 09:19:53,775] INFO:server:database port - 5432
[2010-07-08 09:19:53,775] INFO:server:database user - openerp
[2010-07-08 09:19:53,775] INFO:objects:initialising distributed objects services
[2010-07-08 09:19:55,002] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2010-07-08 09:19:55,013] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2010-07-08 09:19:55,013] INFO:web-services:Registered XML-RPC over HTTP
[2010-07-08 09:19:55,013] INFO:web-services:Registered XML-RPC over HTTPS
[2010-07-08 09:19:55,017] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2010-07-08 09:19:55,018] INFO:server:Starting 3 services
[2010-07-08 09:19:55,019] INFO:web-services:the server is running, waiting for connections...
[2010-07-08 09:21:09,608] INFO:web-services:CREATE DATABASE: test
[2010-07-08 09:21:09,673] ERROR:web-services:[01]: CREATE DATABASE
[2010-07-08 09:21:09,673] ERROR:web-services:[02]: Traceback (most recent call last):
[2010-07-08 09:21:09,673] ERROR:web-services:[03]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 97, in __call__
[2010-07-08 09:21:09,674] ERROR:web-services:[04]: tools.init_db(cr)
[2010-07-08 09:21:09,674] ERROR:web-services:[05]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py", line 64, in init_db
[2010-07-08 09:21:09,674] ERROR:web-services:[06]: f = addons.get_module_resource('base', 'base.sql')
[2010-07-08 09:21:09,674] ERROR:web-services:[07]: AttributeError: 'module' object has no attribute 'get_module_resource'

Deleting the corrupted database is no problem :-)
[2010-07-08 09:21:29,496] INFO:web-services:DROP DB: test

On Thursday 08 July 2010, you wrote:
> Public bug reported:
>
> [2010-07-08 09:19:53,774] INFO:server:version - 6.0dev
> [2010-07-08 09:19:53,775] INFO:server:addons_path -
> /usr/local/lib/python2.6/dist-packages/openerp-server/addons
> ...
> "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py",
> line 64, in init_db [2010-07-08 09:21:09,674] ERROR:web-services:[06]:
> f = addons.get_module_resource('base', 'base.sql') [2010-07-08
> 09:21:09,674] ERROR:web-services:[07]: AttributeError: 'module' object has
> no attribute 'get_module_resource'

Are you sure you have the correct root, addons paths setup in the conf, and
that the server/bin/addons path is not mangled (as in the server repo)?

Hello Jan,

Would you please recheck?
As said by xrg, it could be the problem of bin/addons folder not containing the relevant __init__.py.

Kindly compare the structure to launchpad server repository :http://bazaar.launchpad.net/~openerp/openobject-server/trunk/files

Thanks.

Changed in openobject-server:
milestone: none → 5.0.12
status: New → Invalid
milestone: 5.0.12 → 6.0
Jan Verlaan (jan-verlaan) wrote :

I did checked and re-checked the total structure. I have exactly the same as in loggerhead with the addition that all addons are also copied into /usr/local/lib/python2.6/dist-packages/openerp-server/addons

1. I have run openerp-server from the setup routine that installed in /usr/local/lib/python2.6/dist-packages/openerp-server
and as double check
2. I did run the openerp-server directly from bzr source directory with relevant user and addons_path parameter to the bzr source addons. (the development way)

In both situations I get the same error in GTK and web-client and can't install a new database, hence can not help in testing and exploring V6.

Changed in openobject-server:
status: Invalid → New

Hi,

There is no doubt that you would have checked it, but I guess the __init__.py is malformed for you under addons?

Jan Verlaan (jan-verlaan) wrote :
Download full text (3.5 KiB)

Thank you for your valued comments. Finally I have it running. See my comment after below error report that prevents installing a new database.
Right now there is a error into the /openerp-server/setup.py script. The pixmaps directory isn't copied from sources to /usr/local/lib/python2.6/dist-packages

[2010-07-08 21:50:26,748] INFO:web-services:CREATE DATABASE: test12
[2010-07-08 21:50:28,247] INFO:init:module base: loading objects
[2010-07-08 21:50:28,274] INFO:init:module base: creating or updating database tables
[2010-07-08 21:50:37,465] ERROR:web-services:[01]: CREATE DATABASE
[2010-07-08 21:50:37,465] ERROR:web-services:[02]: Traceback (most recent call last):
[2010-07-08 21:50:37,465] ERROR:web-services:[03]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 102, in __call__
[2010-07-08 21:50:37,465] ERROR:web-services:[04]: update_module=True)[1]
[2010-07-08 21:50:37,466] ERROR:web-services:[05]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 62, in restart_pool
[2010-07-08 21:50:37,466] ERROR:web-services:[06]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[2010-07-08 21:50:37,466] ERROR:web-services:[07]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 39, in get_db_and_pool
[2010-07-08 21:50:37,466] ERROR:web-services:[08]: addons.load_modules(db, force_demo, status, update_module)
[2010-07-08 21:50:37,466] ERROR:web-services:[09]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 794, in load_modules
[2010-07-08 21:50:37,466] ERROR:web-services:[10]: has_updates = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
[2010-07-08 21:50:37,466] ERROR:web-services:[11]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 690, in load_module_graph
[2010-07-08 21:50:37,466] ERROR:web-services:[12]: init_module_objects(cr, package.name, modules)
[2010-07-08 21:50:37,466] ERROR:web-services:[13]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 394, in init_module_objects
[2010-07-08 21:50:37,466] ERROR:web-services:[14]: result = obj._auto_init(cr, {'module': module_name})
[2010-07-08 21:50:37,467] ERROR:web-services:[15]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2476, in _auto_init
[2010-07-08 21:50:37,467] ERROR:web-services:[16]: default = self._defaults[k](self, cr, 1, context)
[2010-07-08 21:50:37,468] ERROR:web-services:[17]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/res/res_company.py", line 192, in _get_logo
[2010-07-08 21:50:37,468] ERROR:web-services:[18]: 'rb') .read().encode('base64')
[2010-07-08 21:50:37,469] ERROR:web-services:[19]: IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/dist-packages/openerp-server/../pixmaps/openerp-header.png'

Indeed my __init__.py did exist but was from another addon, that did exist into previous version of bzr source /addons directory (someone made mistake with merging?) and while c...

Read more...

summary: - V6dev - Can't create a new database on fresh installation
+ V6dev - Can't create a new database on fresh installation - missing
+ pixmaps directory
GEM (nimp3) wrote :

I confirm, that's what I said here :
https://bugs.launchpad.net/openobject-server/+bug/598024 in tag #2
but you can read all the error given using automatic configuration in tag #3 an tag #4.

there is again some works .....
good luck

xrg (xrg) wrote :

The pixmaps need the following patch to setup.py to be installed

xrg (xrg) wrote :

Bug 484657 is for the 5.0 client, but I've seen this problem only on the 6.0 server...
Are they really related?

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

Other bug subscribers

Bug attachments