Erpnext 13 app build error

Getting error while executing following command.

bench get-app --branch version-13 erpnext

Some notes:

  • Amazon Linux 2 with frappe version 13 installed.
  • cython 0.29.24 was installed when the error came first time.
  • uninstalled 0.29.24 version, rebooted and installed 0.29.21 version
  • cython 0.29.21 exact is installed with sudo

Error as follows:
You are running without Cython installed. It is highly recommended to run pip install cython>=0.29.21,<1.0.0 before you continue 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.8 creating build/lib.linux-x86_64-3.8/jsonobject copying jsonobject/__init__.py -> build/lib.linux-x86_64-3.8/jsonobject copying jsonobject/exceptions.py -> build/lib.linux-x86_64-3.8/jsonobject running build_ext building 'jsonobject.api' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/jsonobject .......................... .......................... .......................... jsonobject/api.c:16:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1

Any guidance will be appreciated.

ERPNext doesn’t support cython. Use normal CPython (which is most popular/default implementation of python)

Thank you @ankush,

The error suggest to use “cython>=0.29.21,<1.0.0” and I tried python3-Cython package too. But it causes the same error.

But at last the issue is solved with installation of python38-devel package.
(Edited: In fact cython>=0.29.21 is not required)