← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
[6.0] Error on missing module during upgrade : TypeError: unsupported operand type(s) for +: 'bool' and 'str'
https://bugs.launchpad.net/bugs/663968
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Server: New

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.





Follow ups

References