I have also faced the same issue in develop branch when installing the erpnext app.
Frappe installed successfully and it’s worked fine but when I get the erpnext app then
bench get-app erpnext https://github.com/frappe/erpnext
WARN: bench is installed in editable mode!
This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
Getting erpnext
$ git clone https://github.com/frappe/erpnext --depth 1 --origin upstream
Cloning into 'erpnext'...
remote: Enumerating objects: 5932, done.
remote: Counting objects: 100% (5932/5932), done.
remote: Compressing objects: 100% (4958/4958), done.
remote: Total 5932 (delta 1213), reused 2853 (delta 695), pack-reused 0
Receiving objects: 100% (5932/5932), 18.28 MiB | 152.00 KiB/s, done.
Resolving deltas: 100% (1213/1213), done.
Ignoring dependencies of https://github.com/frappe/erpnext. To install dependencies use --resolve-deps
Installing erpnext
$ /home/scs/ERPNext_Develop/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/scs/ERPNext_Develop/frappe-bench/apps/erpnext
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
/tmp/pip-install-i7se33_q/hiredis_b40174a4d351454e90e7d1b1a01dcc51/setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
import sys, imp, os, glob, io
/home/scs/ERPNext_Develop/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/hiredis
copying hiredis/__init__.py -> build/lib.linux-x86_64-3.10/hiredis
copying hiredis/version.py -> build/lib.linux-x86_64-3.10/hiredis
copying hiredis/hiredis.pyi -> build/lib.linux-x86_64-3.10/hiredis
copying hiredis/py.typed -> build/lib.linux-x86_64-3.10/hiredis
running build_ext
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/vendor
creating build/temp.linux-x86_64-3.10/vendor/hiredis
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 -Ivendor -I/home/scs/ERPNext_Develop/frappe-bench/env/include -I/usr/include/python3.10 -c src/hiredis.c -o build/temp.linux-x86_64-3.10/src/hiredis.o
In file included from src/hiredis.c:1:
src/hiredis.h:4:10: fatal error: Python.h: No such file or directory
4 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hiredis
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [23 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/scs/ERPNext_Develop/frappe-bench/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: 'classifiers' should be a list, got type 'tuple'
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/jsonobject
copying jsonobject/__init__.py -> build/lib.linux-x86_64-3.10/jsonobject
copying jsonobject/exceptions.py -> build/lib.linux-x86_64-3.10/jsonobject
running build_ext
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/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/scs/ERPNext_Develop/frappe-bench/env/include -I/usr/include/python3.10 -c jsonobject/api.c -o build/temp.linux-x86_64-3.10/jsonobject/api.o
jsonobject/api.c:18:10: fatal error: Python.h: No such file or directory
18 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jsonobject
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/scs/ERPNext_Develop/frappe-bench/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: 'classifiers' should be a list, got type 'tuple'
running install
/home/scs/ERPNext_Develop/frappe-bench/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-3.10
creating build/lib.linux-x86_64-3.10/jsonobject
copying jsonobject/__init__.py -> build/lib.linux-x86_64-3.10/jsonobject
copying jsonobject/exceptions.py -> build/lib.linux-x86_64-3.10/jsonobject
running build_ext
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/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/scs/ERPNext_Develop/frappe-bench/env/include -I/usr/include/python3.10 -c jsonobject/api.c -o build/temp.linux-x86_64-3.10/jsonobject/api.o
jsonobject/api.c:18:10: fatal error: Python.h: No such file or directory
18 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[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.
How to resolve issue @ankush.