【问题标题】:Error executing: bench --site site1.local install-app erpnext执行错误:bench --site site1.local install-app erpnext
【发布时间】:2019-11-23 21:05:12
【问题描述】:

我正在尝试使用完整安装来安装 ERPNext frappe,但在执行 bench --site site1.local install-app erpnext 时遇到以下问题

我正在使用ubuntu-19.04 OS

我正在使用master branch

bench --site site1.local install-app erpnext

错误显示

正在安装 erpnext... 更新 erpnext 的 DocTypes:[]Traceback(最近一次调用最后一次):文件“/usr/lib/python2.7/runpy.py”,第 174 行,在 _run_module_as_main“ma​​in", fname, loader, pkg_name) 文件“/usr/lib/python2.7/runpy.py”,第 72 行,在 run_globals 文件中的 _run_code 执行代码“/home/jeet/ERPNEXT-SETUP/frappe-bench /apps/frappe/frappe/utils/bench_helper.py”,第 97 行,在 main() 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”,行18、在主click.Group(commands=commands)(prog_name='bench')文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/python2.7/site-packages/click/ core.py”,第 764 行,在 call 中返回 self.main(*args, **kwargs) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/ python2.7/site-packages/click/core.py”,第 717 行,在主 rv = self.invoke(ctx) 文件中“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/python2 .7/site-packages/click/core.py”,第 1137 行,在调用中返回 _process_re sult(sub_ctx.command.invoke(sub_ctx)) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”,第 1137 行,在调用返回_process_result(sub_ctx.command.invoke(sub_ctx))文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”,第 956 行,在调用中返回 ctx.invoke(self.callback, **ctx.params) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/python2.7/site-packages/click /core.py”,第 555 行,在调用返回回调(*args,**kwargs)文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/env/local/lib/python2.7/site-packages/ click/decorators.py”,第 17 行,在 new_func 返回 f(get_current_context(), *args, **kwargs) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/commands/init.py”,第 25 行,在 _func ret = f(frappe._dict(ctx.obj), *args, **kwargs) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench /apps/frappe/frappe/commands/site.py",第 168 行,在 install_app _install_app(app,详细=context.verbose) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/installer.py”,第 145 行,在 install_app sync_for(name, force=True, sync_everything=True, verbose=详细,reset_permissions=True)文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/model/sync.py”,第 56 行,在 sync_for reset_permissions=reset_permissions,for_sync=True)文件“/ home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/modules/import_file.py”,第 65 行,在 import_file_by_path 中 ignore_version=ignore_version,reset_permissions=reset_permissions) 文件“/home/jeet/ERPNEXT-SETUP/frappe -bench/apps/frappe/frappe/modules/import_file.py”,第 100 行,在 import_doc doc = frappe.get_doc(docdict) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/ init.py”,第 730 行,在 get_doc doc = frappe.model.document.get_doc(*args, **kwargs) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps /frappe/frappe/model/document.py”,第 69 行,在 get_doc 返回控制器(*args,**kwargs)文件中“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/model/document.py”,第 113 行,在 init super(Document, self).init (kwargs) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/model/base_document.py”,第 54 行,在 init self.update (d) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/model/base_document.py”,第 77 行,更新 self.set(key, value) 文件“/home/jeet /ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/model/base_document.py”,第 124 行,在 set self.extend(key, value) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/ apps/frappe/frappe/model/base_document.py”,第 161 行,扩展 self.append(key, v) 文件“/home/jeet/ERPNEXT-SETUP/frappe-bench/apps/frappe/frappe/model/base_document .py”,第 155 行,附加 self.name,str(type(value))[1:-1], value) ValueError:附加到“Accounts Settings”子表的字段“field_order”的文档必须是 dict或 BaseDocument,而不是输入“unicode”(auto_accounting_for _库存)

【问题讨论】:

    标签: python setup-deployment erp erpnext frappe


    【解决方案1】:

    您是否首先尝试查找实际站点名称? 是叫 site1.local 还是简单的叫 site1?

    我发现有时是站点名称导致启动 Bench 命令出现问题。

    还请确保您已将目录更改为 frappe-bench 文件夹。

    最后,您似乎也有一些权限问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-31
      • 1970-01-01
      • 2021-01-30
      • 2016-01-06
      • 2021-09-13
      • 1970-01-01
      • 1970-01-01
      • 2020-08-29
      相关资源
      最近更新 更多