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

unable to install requirement_dev.txt got error #2279

Closed
ketan-more-github opened this issue Dec 21, 2024 · 3 comments
Closed

unable to install requirement_dev.txt got error #2279

ketan-more-github opened this issue Dec 21, 2024 · 3 comments

Comments

@ketan-more-github
Copy link

se
copying cvxpy/atoms/elementwise/neg.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/kl_div.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/sqrt.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/scalene.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/log1p.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/log.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/logistic.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/xexp.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/exp.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/loggamma.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/ceil.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/elementwise.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/pos.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/maximum.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/minimum.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/rel_entr.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/inv_pos.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/log_normcdf.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/abs.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/square.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/init.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/power.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/huber.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/atoms/elementwise/entr.py -> build/lib.linux-x86_64-cpython-313/cvxpy/atoms/elementwise
copying cvxpy/py.typed -> build/lib.linux-x86_64-cpython-313/cvxpy
running build_ext
building '_cvxcore' extension
creating build/temp.linux-x86_64-cpython-313/cvxpy/cvxcore/python
creating build/temp.linux-x86_64-cpython-313/cvxpy/cvxcore/src
g++ -pthread -B /home/k2z/miniconda3/envs/ketan/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/k2z/miniconda3/envs/ketan/include -fPIC -O2 -isystem /home/k2z/miniconda3/envs/ketan/include -fPIC -Icvxpy/cvxcore/src/ -Icvxpy/cvxcore/python/ -Icvxpy/cvxcore/include/ -I/home/k2z/miniconda3/envs/ketan/include/python3.13 -I/tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include -c cvxpy/cvxcore/python/cvxcore_wrap.cxx -o build/temp.linux-x86_64-cpython-313/cvxpy/cvxcore/python/cvxcore_wrap.o -fvisibility=hidden -g0 -O3 -std=c++11 -Wall -pedantic -Wextra -Wno-unused-parameter
In file included from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1913,
from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from cvxpy/cvxcore/python/cvxcore_wrap.cxx:3179:
/tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning is a GCC extension
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
/tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/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]
cvxpy/cvxcore/python/cvxcore_wrap.cxx: In function ‘PyTypeObject* swig_varlink_type()’:
cvxpy/cvxcore/python/cvxcore_wrap.cxx:1454:5: warning: missing initializer for member ‘_typeobject::tp_watched’ [-Wmissing-field-initializers]
1454 | };
| ^
cvxpy/cvxcore/python/cvxcore_wrap.cxx:1454:5: warning: missing initializer for member ‘_typeobject::tp_versions_used’ [-Wmissing-field-initializers]
cvxpy/cvxcore/python/cvxcore_wrap.cxx: In function ‘PyTypeObject* SwigPyObject_TypeOnce()’:
cvxpy/cvxcore/python/cvxcore_wrap.cxx:2048:5: warning: missing initializer for member ‘_typeobject::tp_watched’ [-Wmissing-field-initializers]
2048 | };
| ^
cvxpy/cvxcore/python/cvxcore_wrap.cxx:2048:5: warning: missing initializer for member ‘_typeobject::tp_versions_used’ [-Wmissing-field-initializers]
cvxpy/cvxcore/python/cvxcore_wrap.cxx: In function ‘PyTypeObject* SwigPyPacked_TypeOnce()’:
cvxpy/cvxcore/python/cvxcore_wrap.cxx:2228:5: warning: missing initializer for member ‘_typeobject::tp_watched’ [-Wmissing-field-initializers]
2228 | };
| ^
cvxpy/cvxcore/python/cvxcore_wrap.cxx:2228:5: warning: missing initializer for member ‘_typeobject::tp_versions_used’ [-Wmissing-field-initializers]
cvxpy/cvxcore/python/cvxcore_wrap.cxx: In function ‘PyArrayObject* obj_to_array_no_conversion(PyObject*, int)’:
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3788:62: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
3788 | PyArray_EquivTypenums(array_type(input), typecode)))
| ^~~~~
| |
| PyObject* {aka _object*}
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3725:51: note: in definition of macro ‘array_type’
3725 | #define array_type(a) (int)(PyArray_TYPE(a))
| ^
In file included from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from cvxpy/cvxcore/python/cvxcore_wrap.cxx:3179:
/tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1567:35: note: initializing argument 1 of ‘int PyArray_TYPE(const PyArrayObject*)’
1567 | PyArray_TYPE(const PyArrayObject arr)
| ~~~~~~~~~~~~~~~~~~~~~^~~
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3795:61: error: cannot convert ‘PyObject
’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
3795 | const char* actual_type = typecode_string(array_type(input));
| ^~~~~
| |
| PyObject* {aka _object*}
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3725:51: note: in definition of macro ‘array_type’
3725 | #define array_type(a) (int)(PyArray_TYPE(a))
| ^
In file included from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from cvxpy/cvxcore/python/cvxcore_wrap.cxx:3179:
/tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1567:35: note: initializing argument 1 of ‘int PyArray_TYPE(const PyArrayObject*)’
1567 | PyArray_TYPE(const PyArrayObject arr)
| ~~~~~~~~~~~~~~~~~~~~~^~~
cvxpy/cvxcore/python/cvxcore_wrap.cxx: In function ‘PyArrayObject
obj_to_array_allow_conversion(PyObject*, int, int*)’:
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3824:62: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
3824 | PyArray_EquivTypenums(array_type(input),typecode)))
| ^~~~~
| |
| PyObject* {aka _object*}
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3725:51: note: in definition of macro ‘array_type’
3725 | #define array_type(a) (int)(PyArray_TYPE(a))
| ^
In file included from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from cvxpy/cvxcore/python/cvxcore_wrap.cxx:3179:
/tmp/pip-build-env-v5e6ewta/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1567:35: note: initializing argument 1 of ‘int PyArray_TYPE(const PyArrayObject*)’
1567 | PyArray_TYPE(const PyArrayObject *arr)
| ~~~~~~~~~~~~~~~~~~~~~^~~
error: command '/usr/bin/g++' 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 cvxpy
Failed to build cvxpy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cvxpy)

@gadial
Copy link
Collaborator

gadial commented Jan 23, 2025

This happened with 1.4.x versions of cvxpy being incompatible with Python 3.13. The cvxpy version was bumped to 1.5.x in #2287 and it should install now.

@gadial gadial closed this as completed Jan 23, 2025
@ketan-more-github
Copy link
Author

And what about conan version error

@ketan-more-github
Copy link
Author

Actually i want to build qiskit aer from scratch using amd rocm support but i am unable to do this
Can you list the requirements necessary to build successfully

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

2 participants