Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
9186 Lượt xem

Hello!

Trying to install an accounting module and get this error.

OpenERP Server Error

Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1132, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 424, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 475, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 345, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 161, in load_module_graph
    models = pool.load(cr, package)
  File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 118, in load
    model = cls.create_instance(self, cr)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 926, in create_instance
    obj.__init__(pool, cr)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1080, in __init__
    assert self._rec_name in self._all_columns.keys() + ['id'], "Invalid rec_name %s for model %s" % (self._rec_name, self._name)
AssertionError: Invalid rec_name host for model archive_config.installer

And suddenly I get this error what ever I do.... when trying to login.. and un-installing modules.

Thankful for any help! Erik

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Erik Wellander,

Please reinstall your module by command line like this :

-Go to your server path in command prompt(Terminal)

-Restart your server with following command for 7.0

python open-server --addons-path=your_addons_path -d database_name -u app_name

Hope this work for you.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The module you want to install, is that a default module from openERP, or a custom made?If the latter, can you post some information where you got this module, or made yourself?

If the issue is with an official module, try restarting openERP / the server, and try again.

Do you get anything in the logfile? If so, there is probably more information than what gets to the screen....

Ảnh đại diện
Huỷ bỏ

I have tried everything here and nothing has worked except for taking the base_genko module out of the addons folder. I don't use it so no problem for me.

Câu trả lời hay nhất

Had a similar error today after having restored a DB from distant server.

Just restart the server will do the trick The hostname will be updated

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Looks like this when I restart.

erik@openerp:~$ openerp-server stop No handlers could be found for logger "openerp.addons.base_gengo.wizard.base_gengo_translations Traceback (most recent call last): File "/usr/bin/openerp-server", line 5, in <module> openerp.cli.main() File "/usr/lib/pymodules/python2.7/openerp/cli/__init__.py", line 51, in main __import__(m) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in lo mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/base_action_rule/__init__.py import test_models File "/usr/lib/pymodules/python2.7/openerp/addons/base_action_rule/test_models from osv import osv, fields ImportError: No module named osv erik@openerp:~$ openerp-server start No handlers could be found for logger "openerp.addons.base_gengo.wizard.base_gen Traceback (most recent call last): File "/usr/bin/openerp-server", line 5, in <module> openerp.cli.main() File "/usr/lib/pymodules/python2.7/openerp/cli/__init__.py", line 51, in main __import__(m) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in lo mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/base_action_rule/__init__.py import test_models File "/usr/lib/pymodules/python2.7/openerp/addons/base_action_rule/test_models from osv import osv, fields ImportError: No module named osv

Erik

Ảnh đại diện
Huỷ bỏ

Hi Had this error when tried to install the Swedish CoA - any updates on this issue? Something wrong with this module?

Elise

Câu trả lời hay nhất

Hi Had this error when tried to install the Swedish CoA - any updates on this issue? Something wrong with this module?

Elise

Ảnh đại diện
Huỷ bỏ