Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5455 Vistas

How can I get passed this CRITICAL error?

2014-07-06 16:19:04,506 3883 ERROR applespot werkzeug: Error on request:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/service/server.py", line 280, in app
    return self.app(e, s)
  File "/Users/jannolii/development/python/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 1165, in __call__
    return self.dispatch(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 1142, in __call__
    return self.app(environ, start_wrapped)
  File "/Library/Python/2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 1297, in dispatch
    ir_http = request.registry['ir.http']
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 228, in registry
    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
  File "/Users/jannolii/development/python/odoo/openerp/modules/registry.py", line 291, in get
    update_module)
  File "/Users/jannolii/development/python/odoo/openerp/modules/registry.py", line 322, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/Users/jannolii/development/python/odoo/openerp/modules/loading.py", line 311, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)
  File "/Users/jannolii/development/python/odoo/openerp/modules/loading.py", line 186, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/Users/jannolii/development/python/odoo/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/Users/jannolii/development/python/odoo/openerp/tools/convert.py", line 978, in convert_file
    convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
  File "/Users/jannolii/development/python/odoo/openerp/tools/convert.py", line 1046, in convert_csv_import
    raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading base failed: file base/security/ir.model.access.csv could not be processed:
 Line 1 : 'bool' object has no attribute 'lower'

Avatar
Descartar
Autor

I tracked this error down to _str_to_boolean method in ir_fields.py (of base module). Somehow it ends up converting numerical 1 to lowercase string. Value is taken from a boolean typed field in file I mentioned in my question. Any ideas why?

Autor Mejor respuesta

Found a fix for this in github (by ccomb)
https://github.com/anybox/odoo/commit/740d5c6cd335f6af0b4eef77513faa2ef21c9fa8

Avatar
Descartar
Autor

This fix has been since merged with a 8.0 branch and ... case closed.

Mejor respuesta

In my case the bug appere when I -u all 

the patch fix the problem ..

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 20
2792
2
feb 17
8630
1
may 16
4878
1
jun 25
3084
4
mar 20
3159