2009-04-02 08:46:53 |
m reza febrian khadafi |
description |
While importing a module generated by dia, I face the problem as below. However, I am able to manually put it in the addons folder, and it works fine.
ERROR:common.message:MSG No module named school: Traceback (most recent call last):
File "/home/sanjay/OpenERP/server/bin/netsvc.py", line 386, in run
r = m(*msg[2:])
File "/home/sanjay/OpenERP/server/bin/service/web_services.py", line 431, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/home/sanjay/OpenERP/server/bin/service/web_services.py", line 411, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/home/sanjay/OpenERP/server/bin/wizard/__init__.py", line 165, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/home/sanjay/OpenERP/server/bin/wizard/__init__.py", line 73, in execute_cr
action_res = action(self, cr, uid, data, context)
File "/home/sanjay/OpenERP/server/bin/addons/base/module/wizard/wizard_module_import.py", line 73, in importzip
pooler.get_pool(cr.dbname).get('ir.module.module').update_list(cr, uid)
File "/home/sanjay/OpenERP/server/bin/addons/base/module/module.py", line 434, in update_list
imp.load_module(name, *imp.find_module(mod_name))
ImportError: No module named school |
While importing a module generated by dia, I face the problem as below.
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 231, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 74, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 552, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 532, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 178, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 74, in execute_cr
action_res = action(self, cr, uid, data, context)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
db, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 61, in restart_pool
return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 715, in load_modules
r = load_module_graph(cr, graph, status, report=report)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 584, in load_module_graph
register_class(m)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 390, in register_class
zimp.load_module(m)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/school.zip/school/__init__.py", line 5, in <module>
File "/usr/lib/python2.5/site-packages/openerp-server/addons/school.zip/school/school.py", line 55
class school student(osv.osv):
^
SyntaxError: invalid syntax
|
|