I want to setup the ERPNext-12
version in docker development I’m already referring this document
while running this command
nvm use v12
PYENV_VERSION=3.10.13 bench init --skip-redis-config-generation --frappe-branch version-12 frappe-bench
cd frappe-bench
I’m getting this error
frappe@9154debc2da1:/workspace/development$ PYENV_VERSION=3.10.13 bench init --skip-redis-config-generation --frappe-bra
nch version-12 frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /workspace/development/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /workspace/development/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone https://github.com/frappe/frappe.git --branch version-12 --depth 1 --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 2665, done.
remote: Counting objects: 100% (2665/2665), done.
remote: Compressing objects: 100% (2458/2458), done.
remote: Total 2665 (delta 349), reused 1152 (delta 157), pack-reused 0
Receiving objects: 100% (2665/2665), 12.47 MiB | 2.47 MiB/s, done.
Resolving deltas: 100% (349/349), done.
Installing frappe
$ /workspace/development/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /workspace/development/frappe-bench/apps/frappe
WARNING: The candidate selected for download or install is a yanked version: 'braintree' candidate (version 3.57.1 at https://files.pythonhosted.org/packages/78/ca/0647d68204e8c68919935a712175bcd67691b4741b01cd974a45ff02b3e3/braintree-3.57.1-py2.py3-none-any.whl (from https://pypi.org/simple/braintree/))
Reason for being yanked: critical bugs
$ yarn install
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
subprocess.CalledProcessError: Command 'yarn install' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/frappe/.bench/bench/commands/make.py", line 75, in init
init(
File "/home/frappe/.bench/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/frappe/.bench/bench/utils/system.py", line 87, in init
get_app(
File "/home/frappe/.bench/bench/app.py", line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/frappe/.bench/bench/app.py", line 242, in install
install_app(
File "/home/frappe/.bench/bench/app.py", line 581, in install_app
bench.run("yarn install", cwd=app_path)
File "/home/frappe/.bench/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/.bench/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: yarn install
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: