pip install on python 3.9 doesn't work
Opened this issue · 0 comments
hjalmarlucius commented
Error message from reference to thunk_imatmul
.
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o6sah0tg/lazy-python_3b981e4a66b34a179fc888227623b3aa/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o6sah0tg/lazy-python_3b981e4a66b34a179fc888227623b3aa/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-mp1rxb1w
cwd: /tmp/pip-install-o6sah0tg/lazy-python_3b981e4a66b34a179fc888227623b3aa/
Complete output (47 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/lazy
copying lazy/runtime.py -> build/lib.linux-x86_64-3.9/lazy
copying lazy/__init__.py -> build/lib.linux-x86_64-3.9/lazy
copying lazy/utils.py -> build/lib.linux-x86_64-3.9/lazy
copying lazy/tree.py -> build/lib.linux-x86_64-3.9/lazy
copying lazy/bytecode.py -> build/lib.linux-x86_64-3.9/lazy
creating build/lib.linux-x86_64-3.9/lazy/data
copying lazy/data/list_.py -> build/lib.linux-x86_64-3.9/lazy/data
copying lazy/data/__init__.py -> build/lib.linux-x86_64-3.9/lazy/data
copying lazy/data/empty.py -> build/lib.linux-x86_64-3.9/lazy/data
creating build/lib.linux-x86_64-3.9/lazy/include
copying lazy/include/__init__.py -> build/lib.linux-x86_64-3.9/lazy/include
creating build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/test_undefined.py -> build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/test_utils.py -> build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/test_tree.py -> build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/__init__.py -> build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/test_thunk.py -> build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/test_lazy_function.py -> build/lib.linux-x86_64-3.9/lazy/tests
copying lazy/tests/test_strict.py -> build/lib.linux-x86_64-3.9/lazy/tests
creating build/lib.linux-x86_64-3.9/lazy/data/tests
copying lazy/data/tests/test_list.py -> build/lib.linux-x86_64-3.9/lazy/data/tests
copying lazy/data/tests/__init__.py -> build/lib.linux-x86_64-3.9/lazy/data/tests
running build_ext
building 'lazy._undefined' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/lazy
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -Ilazy/include -I/usr/include/python3.9 -c lazy/_undefined.c -o build/temp.linux-x86_64-3.9/lazy/_undefined.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fno-semantic-interposition -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-3.9/lazy/_undefined.o -L/usr/lib -o build/lib.linux-x86_64-3.9/lazy/_undefined.cpython-39-x86_64-linux-gnu.so
building 'lazy._thunk' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -Ilazy/include -I/usr/include/python3.9 -c lazy/_thunk.c -o build/temp.linux-x86_64-3.9/lazy/_thunk.o
lazy/_thunk.c:863:18: error: ‘thunk_imatmul’ undeclared here (not in a function); did you mean ‘thunk_matmul’?
863 | (binaryfunc) thunk_imatmul,
| ^~~~~~~~~~~~~
| thunk_matmul
lazy/_thunk.c:708:5: warning: ‘thunk_thunk_imatmul’ defined but not used [-Wunused-function]
708 | thunk_ ## name(PyObject *self, PyObject *other) \
| ^~~~~~
lazy/_thunk.c:722:1: note: in expansion of macro ‘THUNK_INPLACE’
722 | THUNK_INPLACE(thunk_imatmul, PyNumber_InPlaceMatrixMultiply)
| ^~~~~~~~~~~~~
error: command '/opt/cuda/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for lazy-python