[6.0] Error on missing module during upgrade : TypeError: unsupported operand type(s) for +: 'bool' and 'str'

Bug #663968 reported by Niels Huylebroeck
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Full trace :
[2010-10-20 17:39:09,357][v6test] WARNING:init:module account_report: module not found
Traceback (most recent call last):
  File "./openerp-server.py", line 121, in <module>
    db,pool = pooler.get_db_and_pool(dbname, update_module=tools.config['init'] or tools.config['update'], pooljobs=False)
  File "/home/red15/Documents/Werk/OpenERP/workspace/rdp/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/red15/Documents/Werk/OpenERP/workspace/rdp/addons/__init__.py", line 846, in load_modules
    new_modules_in_graph = upgrade_graph(graph, cr, module_list, force)
  File "/home/red15/Documents/Werk/OpenERP/workspace/rdp/addons/__init__.py", line 345, in upgrade_graph
    terp_file = get_module_resource(module, '__openerp__.py')
  File "/home/red15/Documents/Werk/OpenERP/workspace/rdp/addons/__init__.py", line 274, in get_module_resource
    if zipfile.is_zipfile( a +'.zip') :
TypeError: unsupported operand type(s) for +: 'bool' and 'str'

This happend when I upgraded database from v6 (pre RC1) to RC1. The module account_report has been removed so this is now a missing module.

It seems it is trying to search for a zip file but when compiling the name of this zipfile it throws this error.

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

Could you check you addon path ?

Thanks

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

s/you/your/g

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

it has been fixed by revision <email address hidden>.
Thanks.

Changed in openobject-server:
milestone: none → 6.0-rc2
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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