I’am getting an issue when trying to run $ bench get-app erpnext
.
Getting erpnext
$ git clone https://github.com/frappe/erpnext.git --branch version-14 --depth 1 --origin upstream
Cloning into 'erpnext'...
remote: Enumerating objects: 4866, done.
remote: Counting objects: 100% (4866/4866), done.
remote: Compressing objects: 100% (4118/4118), done.
remote: Total 4866 (delta 969), reused 2292 (delta 517), pack-reused 0
Receiving objects: 100% (4866/4866), 17.13 MiB | 2.39 MiB/s, done.
Resolving deltas: 100% (969/969), done.
Updating files: 100% (4540/4540), done.
Ignoring dependencies of erpnext. To install dependencies use --resolve-deps
Installing erpnext
$ /home/frappe/erpnext/env/bin/python3.10 -m pip install --quiet --upgrade -e /home/frappe/erpnext/apps/erpnext
error: subprocess-exited-with-error
× Running setup.py install for jsonobject did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
You are running without Cython installed. It is highly recommended to run
pip install cython>=0.29.21,<1.0.0
before you continue
/home/frappe/erpnext/env/lib/python3.10/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
/home/frappe/erpnext/env/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
WARNING: The wheel package is not available.
Warning: 'classifiers' should be a list, got type 'tuple'
running install
/home/frappe/erpnext/env/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/jsonobject
copying jsonobject/__init__.py -> build/lib.linux-x86_64-cpython-310/jsonobject
copying jsonobject/exceptions.py -> build/lib.linux-x86_64-cpython-310/jsonobject
running build_ext
building 'jsonobject.api' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/jsonobject
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/frappe/erpnext/env/include -I/usr/include/python3.10 -c jsonobject/api.c -o build/temp.linux-x86_64-cpython-310/jsonobject/api.o
error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> jsonobject
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
ERROR:
Traceback (most recent call last):
File "/home/frappe/.local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py", line 127, in cli
bench_command()
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/commands/make.py", line 159, in get_app
get_app(
File "/home/frappe/.local/lib/python3.10/site-packages/bench/app.py", line 432, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/app.py", line 230, in install
install_app(
File "/home/frappe/.local/lib/python3.10/site-packages/bench/app.py", line 561, in install_app
bench.run(
File "/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py", line 47, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
I’ve installed cython with the specified version $ pip install "cython==0.29.21"
But nothing work till now