c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #11659
[Bug 697226] Re: MRP-module crashes server on load: NameError: name 'theme' is not defined
Just pulled the new branch and copied the new addons to the openerp-server/addons folder.
This bug is still present.
Am I doing something wrong or has this fix been purged by mistake.
Tested revision was: 4236
Deleting the line "theme.use_color=1" in openerp-
server/addons/mrp/report/workcenter_load.py solves the problem for me.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/697226
Title:
MRP-module crashes server on load: NameError: name 'theme' is not defined
Status in OpenObject Addons Modules:
Fix Released
Bug description:
1) Installed openobject-server from the latest branch (from monday 03-01-11)
1.1) Installed openobject-client-web from the latest branch
1.2) Downloaded the latest revision of openobject-addons
1.3) Copied to openobject-server/addons
1.4) Started the server with openerp-server -d DB_NAME -U all -c /path/to/config/file &
2) Server crashes with the following error when trying to load the module:
Unrecoverable error in the server. Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 541, in run self.respond(pi) File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 624, in respond self.handle_error()
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 746, in handle_error self.error_response()
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/controllers/root.py", line 43, in _cp_on_error message = errorpage.render()
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/controllers/error_page.py", line 55, in render return self.__render(value)
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/openobject/tools/_expose.py", line 191, in func_wrapper res = func(*args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/controllers/error_page.py", line 75, in __render maintenance = proxy.status()
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/utils/rpc.py", line 398, in return lambda *args: self._session.execute("object", "execute", self._resource, name, *args)
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/utils/rpc.py", line 359, in execute return self.gateway.execute(obj, method, *args)
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/utils/rpc.py", line 155, in execute return self.__execute(obj, method, args)
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/utils/rpc.py", line 141, in __execute common.error(_('Application Error'), err.backtrace)
File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc2-py2.6.egg/addons/openerp/utils/common.py", line 74, in error raise TinyError(message=msg, title=title or _("Error")) TinyError: Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 595, in dispatch security.check(db,uid,passwd)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/security.py", line 43, in check pool = pooler.get_pool(db)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 79, in get_pool pool = get_db_and_pool(db_name, force_demo, status, update_module)[1]
File "/usr/local/lib/python2.6/dist-packages/openerp-server/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/addons/__init__.py", line 875, in load_modules r = load_module_graph(cr, graph, status, report=report)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 712, in load_module_graph register_class(package.name)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 445, in register_class imp.load_module(m, *fm)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp/__init__.py", line 27, in import report
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp/report/__init__.py", line 23, in import workcenter_load File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp/report/workcenter_load.py", line 34, in theme.use_color = 1 NameError: name 'theme' is not defined
Everything is working like a charm when I remove the MRP folder from the openerp-server/addons folder.
I'am running this setup on Ubuntu Lucid in an LXC-Container. (which was working fine till I moved to the latest version of mrp-module)
If this is really a bug I am glad that I could help you finding it.
If not please advice on a solution for this problem.
References