Closed heyakyra closed 3 years ago
This is the root cause: https://github.com/pandas-dev/pandas/issues/34969
Workaround:
$ source env/bin/activate
$ python3 -m pip install numpy==1.18.5
Then get erpnext app again
Just adding to what @heyakyra has written we can also the following w.r.t erpnext installation as below:
cd ~
cd /frappe-bench
./env/bin/pip install numpy==1.18.5
./env/bin/pip install pandas==0.24.2
Honestly this error was bugging me up for the last 2 days and since this error is not related to erpnext I would suggest that the bug tag is removed and the issue be closed.
We should include this tip into the installation document.
Source installation also fails with numpy>=1.19.0
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/src/ujson/python -Ipandas/_libs/src/ujson/lib -Ipandas/_libs/src/datetime -I/home/irz0002/Documents/projects/pandas/env/lib/python3.7/site-packages/numpy/core/include -I/home/irz0002/Documents/projects/pandas/env/include -I/usr/include/python3.7m -c pandas/_libs/src/ujson/python/objToJSON.c -o build/temp.linux-x86_64-3.7/pandas/_libs/src/ujson/python/objToJSON.o -D_GNU_SOURCE -Wno-unused-function
pandas/_libs/src/ujson/python/objToJSON.c: In function ‘initObjToJSON’:
pandas/_libs/src/ujson/python/objToJSON.c:181:12: error: ‘NUMPY_IMPORT_ARRAY_RETVAL’ undeclared (first use in this function); did you mean ‘NPY_INOUT_ARRAY’?
return NUMPY_IMPORT_ARRAY_RETVAL;
^~~~~~~~~~~~~~~~~~~~~~~~~
NPY_INOUT_ARRAY
pandas/_libs/src/ujson/python/objToJSON.c:181:12: note: each undeclared identifier is reported only once for each function it appears in
pandas/_libs/src/ujson/python/objToJSON.c:182:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Reverting to numpy=1.18.5 build completes with no issues.
Upstream issue got fixed so this is not an issue anymore for us.
Though it would better to remove this dependency completely.
Using
bench get-app --branch version-13-beta erpnext
fails with:Full output attached bench_install.log