I’m trying to use a dev container to build my own apps. But I’ve spend the last two weeks failing to open the dev container. I’ve just tried again from scratch. I can correcty copy the repo for frappe docker. I can also go into the devcontainer via vscode but bench isn’t working. When I run bench init i get the following : Setting Up Environment
$ python3 -m venv env
$ /workspace/development/habitudes/env/bin/python -m pip install --quiet --upgrade pip
$ /workspace/development/habitudes/env/bin/python -m pip install --quiet wheel
/bin/sh: 1: redis-server: not found
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 70, in init
bench.setup.config(
File “/home/frappe/.bench/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.bench/bench/bench.py”, line 386, in config
generate_config(self.bench.name)
File “/home/frappe/.bench/bench/config/redis.py”, line 15, in generate_config
redis_version = get_redis_version()
^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.bench/bench/config/redis.py”, line 73, in get_redis_version
version_string = subprocess.check_output(“redis-server --version”, shell=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/subprocess.py”, line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘redis-server --version’ returned non-zero exit status 127.
ERROR: There was a problem while creating habitudes ;
I also get the following problem in python output : 2025-01-08 12:59:56.385 [error] [
‘getActivatedEnvironmentVariables, Class name = M, completed in 24ms, has a falsy return value, Arg 1: Uri:/workspace/development, Arg 2: undefined, Arg 3: undefined, Arg 4: “/bin/bash”’,
l [Error]: Failed to resolve env “/workspace/development/frappe-bench/env/bin/python”
at ae (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2036206)
at oe (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2034166)
at Immediate. (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2030460)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
}
]
2025-01-08 12:59:56.385 [error] Failed to apply terminal env vars undefined l [Error]: Failed to resolve env “/workspace/development/frappe-bench/env/bin/python”
at ae (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2036206)
at oe (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2034166)
at Immediate. (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2030460)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
}
2025-01-08 12:59:56.385 [error] Python Extension: interpreterManager.refresh l [Error]: Failed to resolve env “/workspace/development/frappe-bench/env/bin/python”
at ae (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2036206)
at oe (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2034166)
at Immediate. (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2030460)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
}
2025-01-08 12:59:56.386 [error] [
‘Failed to activate a workspace, Class name = v, completed in 1376ms, has a falsy return value, Arg 1: Uri:/workspace/development/installer.py, Arg 2: {“started”:1736341194348}, Return Value: undefined’,
l [Error]: Failed to resolve env “/workspace/development/frappe-bench/env/bin/python”
at ae (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2036206)
at oe (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2034166)
at Immediate. (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2030460)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
}
]
2025-01-08 12:59:56.386 [error] Failure during activation. l [Error]: Failed to resolve env “/workspace/development/frappe-bench/env/bin/python”
at ae (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2036206)
at oe (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2034166)
at Immediate. (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2030460)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
}
2025-01-08 12:59:56.386 [error] sendStartupTelemetry() failed. l [Error]: Failed to resolve env “/workspace/development/frappe-bench/env/bin/python”
at ae (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2036206)
at oe (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2034166)
at Immediate. (/home/frappe/.vscode-server/extensions/ms-python.python-2024.22.2-linux-x64/out/client/extension.js:2:2030460)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
} ;
Please help me I’m tired of struggling…