欢迎光临散文网 会员登陆 & 注册

Ubuntu 22.04 手动安装ERPNext V14

2023-07-26 23:06 作者:Pei_渣男  | 我要投稿

fh@ubuntu:~$ bench init --frappe-branch version-14 frappe-bench --frappe-path=https://gitee.com/mirrors/frappe

Setting Up Environment

$ /usr/bin/python3 -m venv env

$ /home/fh/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip

Getting frappe

$ git clone https://gitee.com/mirrors/frappe --branch version-14 --depth 1 --origin upstream

正克隆到 'frappe'...

remote: Enumerating objects: 3213, done.

remote: Counting objects: 100% (3213/3213), done.

remote: Compressing objects: 100% (2890/2890), done.

remote: Total 3213 (delta 436), reused 1624 (delta 222), pack-reused 0

接收对象中: 100% (3213/3213), 16.05 MiB | 2.48 MiB/s, 完成.

处理 delta 中: 100% (436/436), 完成.

Installing frappe

$ /home/fh/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/fh/frappe-bench/apps/frappe 

 ERROR: Command errored out with exit status 1:

  command: /home/fh/frappe-bench/env/bin/python /home/fh/frappe-bench/env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_editable /tmp/tmpmadt1p6f

    cwd: /home/fh/frappe-bench/apps/frappe

 Complete output (17 lines):

 Traceback (most recent call last):

  File "/home/fh/frappe-bench/env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>

   main()

  File "/home/fh/frappe-bench/env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main

   json_out['return_val'] = hook(**hook_input['kwargs'])

  File "/home/fh/frappe-bench/env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in get_requires_for_build_editable

   return hook(config_settings)

  File "/tmp/pip-build-env-w8q1ijpd/overlay/lib/python3.6/site-packages/flit_core/buildapi.py", line 32, in get_requires_for_build_wheel

   docstring, version = get_docstring_and_version_via_ast(module)

  File "/tmp/pip-build-env-w8q1ijpd/overlay/lib/python3.6/site-packages/flit_core/common.py", line 149, in get_docstring_and_version_via_ast

   node = ast.parse(f.read())

  File "/usr/lib/python3.6/ast.py", line 35, in parse

   return compile(source, filename, mode, PyCF_ONLY_AST)

  File "<unknown>", line 1093

   if key := can_cache_doc(args):

       ^

 SyntaxError: invalid syntax

 ----------------------------------------

WARNING: Discarding file:///home/fh/frappe-bench/apps/frappe. Command errored out with exit status 1: /home/fh/frappe-bench/env/bin/python /home/fh/frappe-bench/env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_editable /tmp/tmpmadt1p6f Check the logs for full command output.

ERROR: Command errored out with exit status 1: /home/fh/frappe-bench/env/bin/python /home/fh/frappe-bench/env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_editable /tmp/tmpmadt1p6f Check the logs for full command output.

Traceback (most recent call last):

 File "/usr/local/lib/python3.6/dist-packages/bench/commands/make.py", line 83, in init

  verbose=verbose,

 File "/usr/local/lib/python3.6/dist-packages/bench/utils/render.py", line 95, in wrapper_fn

  return fn(*args, **kwargs)

 File "/usr/local/lib/python3.6/dist-packages/bench/utils/system.py", line 85, in init

  resolve_deps=False,

 File "/usr/local/lib/python3.6/dist-packages/bench/app.py", line 433, in get_app

  app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)

 File "/usr/local/lib/python3.6/dist-packages/bench/utils/render.py", line 110, in wrapper_fn

  return fn(*args, **kwargs)

 File "/usr/local/lib/python3.6/dist-packages/bench/app.py", line 239, in install

  resolution=self.local_resolution

 File "/usr/local/lib/python3.6/dist-packages/bench/app.py", line 553, in install_app

  bench.run(f"{bench.python} -m pip install {quiet_flag} --upgrade -e {app_path} {cache_flag}")

 File "/usr/local/lib/python3.6/dist-packages/bench/bench.py", line 47, in run

  return exec_cmd(cmd, cwd=cwd or self.cwd)

 File "/usr/local/lib/python3.6/dist-packages/bench/utils/__init__.py", line 153, in exec_cmd

  raise CommandFailedError

bench.exceptions.CommandFailedError


ERROR: There was a problem while creating frappe-bench

Do you want to rollback these changes? [y/N]: 

Aborted!

fh@ubuntu:~$ 


Ubuntu 22.04 手动安装ERPNext V14的评论 (共 条)

分享到微博请遵守国家法律