Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about the requirement.txt #13

Open
unrestrainednatural opened this issue Jun 26, 2024 · 3 comments
Open

about the requirement.txt #13

unrestrainednatural opened this issue Jun 26, 2024 · 3 comments

Comments

@unrestrainednatural
Copy link

作者您好,非常感谢你们团队的工作。在配置环境时,我遇到了一些问题,当下载requirement.txt中的cyminiball包时,遇到了以下错误:
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting cyminiball
Downloading cyminiball-2.1.1.tar.gz (183 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 183.8/183.8 kB 389.6 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.0 in /root/miniconda3/envs/PointMamba_SJ/lib/python3.10/site-packages (from cyminiball) (1.26.4)
Building wheels for collected packages: cyminiball
Building wheel for cyminiball (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for cyminiball (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/cyminiball
copying src/init.py -> build/lib.linux-x86_64-cpython-310/cyminiball
copying src/_compat.py -> build/lib.linux-x86_64-cpython-310/cyminiball
running build_ext
building 'cyminiball._wrap' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/src
gcc -pthread -B /root/miniconda3/envs/PointMamba_SJ/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/PointMamba_SJ/include -fPIC -O2 -isystem /root/miniconda3/envs/PointMamba_SJ/include -fPIC -I/tmp/pip-install-4w1yp_4f/cyminiball_5ef798674efc46399afcee8ce7e1a0a1 -I/tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include -I/root/miniconda3/envs/PointMamba_SJ/include/python3.10 -c src/_miniball_wrap.cpp -o build/temp.linux-x86_64-cpython-310/src/_miniball_wrap.o -std=c++11
In file included from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1909,
from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from src/_miniball_wrap.cpp:741:
/tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-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 "
| ^~~~~~~
In file included from /root/miniconda3/envs/PointMamba_SJ/include/python3.10/Python.h:74,
from src/_miniball_wrap.cpp:35:
src/_miniball_wrap.cpp: In function ‘PyObject* __pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr*)’:
src/_miniball_wrap.cpp:8712:41: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’
8712 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
| ^~~~~~~~
/root/miniconda3/envs/PointMamba_SJ/include/python3.10/object.h:112:41: note: in definition of macro ‘_PyObject_CAST’
112 | #define _PyObject_CAST(op) ((PyObject*)(op))
| ^~
src/_miniball_wrap.cpp:1523:27: note: in expansion of macro ‘Py_INCREF’
1523 | #define __Pyx_INCREF(r) Py_INCREF(r)
| ^~~~~~~~~
src/_miniball_wrap.cpp:8712:5: note: in expansion of macro ‘__Pyx_INCREF’
8712 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
| ^~~~~~~~~~~~
src/_miniball_wrap.cpp:8713:38: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’
8713 | __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
| ^~~~~~~~
error: command '/usr/bin/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 cyminiball
Failed to build cyminiball
ERROR: Could not build wheels for cyminiball, which is required to install pyproject.toml-based projects
当我使用python3.10.13和numpy1.26.4时,就无法下载cyminiball,将python改成3.8.0时,numpy依旧使用1.26.4,cyminiball可以正常下载编译,但是python3.8会和requirement中的其他包冲突。我想请问你们是否遇到了这种问题,该如何解决?
真诚请求您的回复

@Aristo23333
Copy link
Collaborator

作者您好,非常感谢你们团队的工作。在配置环境时,我遇到了一些问题,当下载requirement.txt中的cyminiball包时,遇到了以下错误: Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com Collecting cyminiball Downloading cyminiball-2.1.1.tar.gz (183 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 183.8/183.8 kB 389.6 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy>=1.0 in /root/miniconda3/envs/PointMamba_SJ/lib/python3.10/site-packages (from cyminiball) (1.26.4) Building wheels for collected packages: cyminiball Building wheel for cyminiball (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for cyminiball (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [39 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/cyminiball copying src/init.py -> build/lib.linux-x86_64-cpython-310/cyminiball copying src/_compat.py -> build/lib.linux-x86_64-cpython-310/cyminiball running build_ext building 'cyminiball._wrap' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/src gcc -pthread -B /root/miniconda3/envs/PointMamba_SJ/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/PointMamba_SJ/include -fPIC -O2 -isystem /root/miniconda3/envs/PointMamba_SJ/include -fPIC -I/tmp/pip-install-4w1yp_4f/cyminiball_5ef798674efc46399afcee8ce7e1a0a1 -I/tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include -I/root/miniconda3/envs/PointMamba_SJ/include/python3.10 -c src/_miniball_wrap.cpp -o build/temp.linux-x86_64-cpython-310/src/_miniball_wrap.o -std=c++11 In file included from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1909, from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12, from /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-packages/numpy/_core/include/numpy/arrayobject.h:5, from src/_miniball_wrap.cpp:741: /tmp/pip-build-env-xnv2xxxg/overlay/lib/python3.10/site-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 " | ^~~~~~~ In file included from /root/miniconda3/envs/PointMamba_SJ/include/python3.10/Python.h:74, from src/_miniball_wrap.cpp:35: src/_miniball_wrap.cpp: In function ‘PyObject* __pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr*)’: src/_miniball_wrap.cpp:8712:41: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’ 8712 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape)); | ^~~~~~~~ /root/miniconda3/envs/PointMamba_SJ/include/python3.10/object.h:112:41: note: in definition of macro ‘_PyObject_CAST’ 112 | #define _PyObject_CAST(op) ((PyObject*)(op)) | ^~ src/_miniball_wrap.cpp:1523:27: note: in expansion of macro ‘Py_INCREF’ 1523 | #define __Pyx_INCREF(r) Py_INCREF(r) | ^~~~~~~~~ src/_miniball_wrap.cpp:8712:5: note: in expansion of macro ‘__Pyx_INCREF’ 8712 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape)); | ^~~~~~~~~~~~ src/_miniball_wrap.cpp:8713:38: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’ 8713 | __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); | ^~~~~~~~ error: command '/usr/bin/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 cyminiball Failed to build cyminiball ERROR: Could not build wheels for cyminiball, which is required to install pyproject.toml-based projects 当我使用python3.10.13和numpy1.26.4时,就无法下载cyminiball,将python改成3.8.0时,numpy依旧使用1.26.4,cyminiball可以正常下载编译,但是python3.8会和requirement中的其他包冲突。我想请问你们是否遇到了这种问题,该如何解决? 真诚请求您的回复

您好!我的cyminiball版本是2.1.1,numpy是1.26.2,也许可以改变一下numpy的版本

@carlpython2021
Copy link

I meet the same problem and successfully intall cyminiball with https://github.com/hirsch-lab/cyminiball.
git clone "https://github.com/hirsch-lab/cyminiball.git"
cd cyminiball
python -m pip install -r "requirements.txt"
./build_install.sh
python "tests/test_all.py"
python "examples/examples.py"

@unrestrainednatural
Copy link
Author

I meet the same problem and successfully intall cyminiball with https://github.com/hirsch-lab/cyminiball. git clone "https://github.com/hirsch-lab/cyminiball.git" cd cyminiball python -m pip install -r "requirements.txt" ./build_install.sh python "tests/test_all.py" python "examples/examples.py"

Thanks,I also use this way to install cyminiball.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants