Open Feng-long opened 5 years ago
Glad you closed the issue, Feng-long. What the key to resolving it, just out of interest?
When I changed to python 3.6, this problem is gone. Maybe the newest cython version doesn't match python 3.7. @MattShannon
Got the same issue on conda python3.7 on debian.
I confirm that moving to Python 3.6 solves the issue.
@MattShannon Hi, I am seeing the issue on python 3.7 and realized that this is caused by an internal change of cpython, which has been introduced in python 3.7. See https://github.com/cython/cython/issues/1955 for discussion.
Updating pypi-sdist compilied with a newer version of cython (>= 0.28, that includes https://github.com/cython/cython/commit/8ad16fc871be075f889d5e7c2892db3e4c8ce978) will fix the issue. Could you confirm the issue and update the pypi source distribution? Otherwise we'll see installation failure via pip.
@Feng-long I think this issue should be reopend as it's not essentially fixed yet. Using python 3.6 can avoid the complication error though.
Ref: https://github.com/cython/cython/issues/1955, https://github.com/cython/cython/pull/1956, https://github.com/biolab/orange3/pull/3067
https://github.com/MattShannon/bandmat/issues/11 is about the exact same issue.
@r9y9 Hi, I have reopened the issue for the further update :)
I got the same problem on python 3.7, waiting for fix it
The problem is that the cython generated code in the release tar ball is not compatible with python 3.7. FYI, you can build bandmat from source with a newer cython if you want to use python 3.7.
@MattShannon Could you take a look?
@MattShannon Kindly, ping again.
it is not getting solve after changing the python version to 3.6
No luck, can't install bandmat still.
sudo pip3 install bandmat
Collecting bandmat
Using cached bandmat-0.7.tar.gz (364 kB)
Requirement already satisfied: numpy>=1.6.1 in /usr/local/lib/python3.8/dist-packages (from bandmat) (1.23.2)
Requirement already satisfied: scipy>=0.9.0 in /usr/local/lib/python3.8/dist-packages (from bandmat) (1.9.0)
Building wheels for collected packages: bandmat
Building wheel for bandmat (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-segktffl/bandmat/setup.py'"'"'; __file__='"'"'/tmp/pip-install-segktffl/bandmat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-n_fz9qyv
cwd: /tmp/pip-install-segktffl/bandmat/
Complete output (130 lines):
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/bandmat
copying bandmat/test_testhelp.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/testhelp.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_tensor.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/__init__.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_linalg.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_misc.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_core.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_full.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_overlap.py -> build/lib.linux-x86_64-3.8/bandmat
running build_ext
building 'bandmat.full' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/bandmat
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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c bandmat/full.c -o build/temp.linux-x86_64-3.8/bandmat/full.o -O3
In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
from bandmat/full.c:239:
/usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_band_c’:
bandmat/full.c:1499:46: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
1499 | for (__pyx_t_17 = __pyx_t_16; __pyx_t_17 < __pyx_t_13; __pyx_t_17+=1) {
| ^
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_2band_e’:
bandmat/full.c:1853:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
1853 | for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) {
| ^
bandmat/full.c:1863:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
1863 | if ((((__pyx_v_j + __pyx_v_i) < __pyx_v_size) != 0)) {
| ^
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_4zero_extra_entries’:
bandmat/full.c:2131:35: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
2131 | for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_2; __pyx_t_5+=1) {
| ^
bandmat/full.c:2182:43: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
2182 | for (__pyx_t_5 = __pyx_t_9; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
| ^
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_10band_cTe’:
bandmat/full.c:3023:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
3023 | for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) {
| ^
bandmat/full.c:3033:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
3033 | if ((((__pyx_v_j - __pyx_v_i) < __pyx_v_size) != 0)) {
| ^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/bandmat/full.o -o build/lib.linux-x86_64-3.8/bandmat/full.cpython-38-x86_64-linux-gnu.so
building 'bandmat.core' extension
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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c bandmat/core.c -o build/temp.linux-x86_64-3.8/bandmat/core.o -O3
In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
from bandmat/core.c:239:
/usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
bandmat/core.c: In function ‘__pyx_pf_7bandmat_4core_7BandMat_16plus_equals_band_of’:
bandmat/core.c:4088:46: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
4088 | for (__pyx_t_15 = __pyx_t_14; __pyx_t_15 < __pyx_t_9; __pyx_t_15+=1) {
| ^
bandmat/core.c: In function ‘__Pyx_ExceptionSave’:
bandmat/core.c:15606:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15606 | *type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15607:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15607 | *value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15608:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15608 | *tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c: In function ‘__Pyx_ExceptionReset’:
bandmat/core.c:15620:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15620 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15621:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15621 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15622:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15622 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c:15623:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15623 | tstate->exc_type = type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15624:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15624 | tstate->exc_value = value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15625:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15625 | tstate->exc_traceback = tb;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c: In function ‘__Pyx_GetException’:
bandmat/core.c:15668:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15668 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15669:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15669 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15670:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15670 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c:15671:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15671 | tstate->exc_type = local_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15672:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15672 | tstate->exc_value = local_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15673:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15673 | tstate->exc_traceback = local_tb;
| ^~~~~~~~~~~~~
| curexc_traceback
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for bandmat
Running setup.py clean for bandmat
Failed to build bandmat
Installing collected packages: bandmat
Running setup.py install for bandmat ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-segktffl/bandmat/setup.py'"'"'; __file__='"'"'/tmp/pip-install-segktffl/bandmat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-zs8zoqmx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/bandmat
cwd: /tmp/pip-install-segktffl/bandmat/
Complete output (130 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_testhelp.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/testhelp.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_tensor.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/__init__.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_linalg.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_misc.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_core.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_full.py -> build/lib.linux-x86_64-3.8/bandmat
copying bandmat/test_overlap.py -> build/lib.linux-x86_64-3.8/bandmat
running build_ext
building 'bandmat.full' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/bandmat
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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c bandmat/full.c -o build/temp.linux-x86_64-3.8/bandmat/full.o -O3
In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
from bandmat/full.c:239:
/usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_band_c’:
bandmat/full.c:1499:46: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
1499 | for (__pyx_t_17 = __pyx_t_16; __pyx_t_17 < __pyx_t_13; __pyx_t_17+=1) {
| ^
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_2band_e’:
bandmat/full.c:1853:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
1853 | for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) {
| ^
bandmat/full.c:1863:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
1863 | if ((((__pyx_v_j + __pyx_v_i) < __pyx_v_size) != 0)) {
| ^
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_4zero_extra_entries’:
bandmat/full.c:2131:35: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
2131 | for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_2; __pyx_t_5+=1) {
| ^
bandmat/full.c:2182:43: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
2182 | for (__pyx_t_5 = __pyx_t_9; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
| ^
bandmat/full.c: In function ‘__pyx_pf_7bandmat_4full_10band_cTe’:
bandmat/full.c:3023:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
3023 | for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) {
| ^
bandmat/full.c:3033:37: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
3033 | if ((((__pyx_v_j - __pyx_v_i) < __pyx_v_size) != 0)) {
| ^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/bandmat/full.o -o build/lib.linux-x86_64-3.8/bandmat/full.cpython-38-x86_64-linux-gnu.so
building 'bandmat.core' extension
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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c bandmat/core.c -o build/temp.linux-x86_64-3.8/bandmat/core.o -O3
In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
from bandmat/core.c:239:
/usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
bandmat/core.c: In function ‘__pyx_pf_7bandmat_4core_7BandMat_16plus_equals_band_of’:
bandmat/core.c:4088:46: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
4088 | for (__pyx_t_15 = __pyx_t_14; __pyx_t_15 < __pyx_t_9; __pyx_t_15+=1) {
| ^
bandmat/core.c: In function ‘__Pyx_ExceptionSave’:
bandmat/core.c:15606:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15606 | *type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15607:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15607 | *value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15608:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15608 | *tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c: In function ‘__Pyx_ExceptionReset’:
bandmat/core.c:15620:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15620 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15621:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15621 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15622:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15622 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c:15623:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15623 | tstate->exc_type = type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15624:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15624 | tstate->exc_value = value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15625:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15625 | tstate->exc_traceback = tb;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c: In function ‘__Pyx_GetException’:
bandmat/core.c:15668:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15668 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15669:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15669 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15670:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15670 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
bandmat/core.c:15671:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
15671 | tstate->exc_type = local_type;
| ^~~~~~~~
| curexc_type
bandmat/core.c:15672:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
15672 | tstate->exc_value = local_value;
| ^~~~~~~~~
| curexc_value
bandmat/core.c:15673:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
15673 | tstate->exc_traceback = local_tb;
| ^~~~~~~~~~~~~
| curexc_traceback
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-segktffl/bandmat/setup.py'"'"'; __file__='"'"'/tmp/pip-install-segktffl/bandmat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-zs8zoqmx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/bandmat Check the logs for full command output.
Hi When I tried to install bandmat using pip install bandmat. There are errors like followings. I've already installed numpy scipy and cython(0.29). Python version is 3.7
bandmat/core.c: In function '__Pyx_ExceptionSave': bandmat/core.c:15606:19: error: 'PyThreadState' has no member named 'exc_type' type = tstate->exc_type; ^ bandmat/core.c:15607:20: error: 'PyThreadState' has no member named 'exc_value' value = tstate->exc_value; ^ bandmat/core.c:15608:17: error: 'PyThreadState' has no member named 'exc_traceback' *tb = tstate->exc_traceback; ^ bandmat/core.c: In function 'Pyx_ExceptionReset': bandmat/core.c:15620:22: error: 'PyThreadState' has no member named 'exc_type' tmp_type = tstate->exc_type; ^ bandmat/core.c:15621:23: error: 'PyThreadState' has no member named 'exc_value' tmp_value = tstate->exc_value; ^ bandmat/core.c:15622:20: error: 'PyThreadState' has no member named 'exc_traceback' tmp_tb = tstate->exc_traceback; ^ bandmat/core.c:15623:11: error: 'PyThreadState' has no member named 'exc_type' tstate->exc_type = type; ^ bandmat/core.c:15624:11: error: 'PyThreadState' has no member named 'exc_value' tstate->exc_value = value; ^ bandmat/core.c:15625:11: error: 'PyThreadState' has no member named 'exc_traceback' tstate->exc_traceback = tb; ^ bandmat/core.c: In function 'Pyx_GetException': bandmat/core.c:15668:22: error: 'PyThreadState' has no member named 'exc_type' tmp_type = tstate->exc_type; ^ bandmat/core.c:15669:23: error: 'PyThreadState' has no member named 'exc_value' tmp_value = tstate->exc_value; ^ bandmat/core.c:15670:20: error: 'PyThreadState' has no member named 'exc_traceback' tmp_tb = tstate->exc_traceback; ^ bandmat/core.c:15671:11: error: 'PyThreadState' has no member named 'exc_type' tstate->exc_type = local_type; ^ bandmat/core.c:15672:11: error: 'PyThreadState' has no member named 'exc_value' tstate->exc_value = local_value; ^ bandmat/core.c:15673:11: error: 'PyThreadState' has no member named 'exc_traceback' tstate->exc_traceback = local_tb; ^ error: command 'gcc' failed with exit status 1