[6.0] Error when creating first database

Bug #613435 reported by Eric Caudal - www.elico-corp.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

20100804 download
When in the wizard to create the first database, I choose all the modules and got the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/netsvc.py", line 401, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/service/web_services.py", line 584, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 133, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 123, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/base/res/res_config.py", line 183, in action_next
    next = self.execute(cr, uid, ids, context=None)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/base/res/res_config.py", line 415, in execute
    pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 830, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 688, in load_module_graph
    modules = pool.instanciate(package.name, cr)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 187, in instanciate
    res.append(klass.createInstance(self, module, cr))
  File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 260, in createInstance
    assert pool.get(parent_name), "parent class %s does not exist in module %s !" % (parent_name, module)
AssertionError: parent class mrp.procurement does not exist in module library !

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Eric,

The error does not come up at our end.
"mrp.procurement" object no longer exists.
Would you please update the code and re-check?

If the error still persists, please provide a detailed information to reach out the error, as things work fine at our end.

I hope this helps.
Thank you.

Changed in openobject-addons:
milestone: none → 6.0
status: New → Invalid
Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote : Re: [Bug 613435] Re: [6.0] Error when creating first database
Download full text (3.4 KiB)

Hi JMA,
I restarted from scratch. Downloaded all sources from bazaar. I am now
on revno 2579, updating server and addons and extra-addons.
I had still to correct manually the following 2 basic bugs:
- the pixmaps directory not copied during setup and
- base/res_company.py line 191 as followed:
# tools.config['root_path'], '..', 'pixmaps',
'openerp-header.png'),
            tools.config['root_path'], 'pixmaps', 'openerp-header.png'),
#EC

I could finally get to the point that at least I get the first database
created. I arrived at the first setup wizard and ask him to install all
modules and I still get this:

Environment Information :
System : Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-22-generic
Operating System Version : #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
call last):
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/netsvc.py",
line 407, in dispatch
    result = ExportService.getService(service_name).dispatch(method,
auth, params)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/service/web_services.py", line 584, in dispatch
    res = fn(db, uid, *params)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py",
line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py",
line 133, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py",
line 123, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/base/res/res_config.py", line 183, in action_next
    next = self.execute(cr, uid, ids, context=None)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/base/res/res_config.py", line 415, in execute
    pooler.restart_pool(cr.dbname, update_module=True)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/pooler.py",
line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status,
update_module=update_module)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/pooler.py",
line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 830, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 688, in load_module_graph
    modules = pool.instanciate(package.name, cr)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py",
line 187, in instanciate
    res.append(klass.createInstance(self, module, cr))
  File
"/usr/local/lib/python2.6/dist-p...

Read more...

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Eric,

I agree with the error.
Unfortunately, the error is due to the module which resides in extra-addons, which in turn is not compatible to the new changes that have taken place with procurement objects.

Have you linked the module 'library' to addons?
If yes, you need to rename the object 'mrp.procurement' to 'procurement.order'.

Hope this clears the doubt and lets you get rid of this error.

Thanks.

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

hi JMA,
for the moment it makes the trick for testing purpose.
Thanks for helping!

Eric

On jeu., 2010-08-05 at 08:44 +0000, JMA(Open ERP) wrote:

> Hello Eric,
>
> The error does not come up at our end.
> "mrp.procurement" object no longer exists.
> Would you please update the code and re-check?
>
> If the error still persists, please provide a detailed information to
> reach out the error, as things work fine at our end.
>
> I hope this helps.
> Thank you.
>

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

Any news on the error on line 191 /base/res_company.py?

This simple error force to manually change this file every time w update
the code...

Eric

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Eric,

Am unable to understand the error which you pointing at.
Can you give a specific scenario where you meet up with the error?

Thanks.

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

Hi JMA,
As far as I am concerned, this bug has been answered and the problem
lies on mrp.procurement object that does not exist anymore (or did not
exist before).

I got the error after installing a demo database and including all
modules in the initial wizard (which was surprising since all modules in
initial wizard should be certified should not they?).

Let me know if you need further details.

Eric

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Eric,

I completely agree with you.
The error came up since the 'mrp.procurement' object which existed before apparently has been handled in a different manner in trunk.

However, this module is yet to be made compatible with trunk.

Thank you.

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.