gpt4 book ai didi

python - 安装模块odoo时出错: module loading failed

转载 作者:太空宇宙 更新时间:2023-11-03 16:45:51 25 4
gpt4 key购买 nike

我已经开发了这个模块,但我无法运行它,我不断收到此错误跟踪,但不知道它是什么,谢谢。

Traceback (most recent call last):
File "C:\Users\Utilisateur\git\persol\odoo\openerp\http.py", line 405, in response_wrap
response = f(*args, **kw)
File "C:\Users\Utilisateur\git\persol\odoo\addons\web\controllers\main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "C:\Users\Utilisateur\git\persol\odoo\addons\web\controllers\main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\addons\base\module\module.py", line 447, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\addons\base\module\module.py", line 495, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 355, in load_modules
loaded_modules, update_module)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 255, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\tools\convert.py", line 894, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\tools\convert.py", line 962, 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 mgmtsystem_dysfunction failed: file mgmtsystem_dysfunction\security/ir.model.access.csv could not be processed:
Line 1 : id,"name","model_id

最佳答案

看到最后一行的错误,告诉:

Line 1 : id,"name","model_id

这是因为 CSV 文件格式不正确。转到此类文件(上面的一行表示为:mgmtsystem_dysfunction\security/ir.model.access.csv)并平衡双引号(缺少最后一个)或将其删除。

关于python - 安装模块odoo时出错: module loading failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36312767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com