Open Sraj4063 opened 11 months ago
compile options add -DDISABLE_CONAN=ON
compile options add -DDISABLE_CONAN=ON
Its already ON
How and where to add to this
qiskit-aer files
I also ran into this issue on an Arch Linux machine with cmake version 3.27.7
On an Ubuntu machine with cmake version 3.22.1, I did not get this issue.
@Sraj4063 what is your cmake version?
Oh I just tried again on the Ubuntu machine in a different virtual environment and it failed.
I think this is related to #1069 and #1080 and that the current pyproject.toml
is not very correct. Fair enough, it is documented here that even by disabling conan you still need to install it (why?).
For example, to create the wheel package in Archlinux (using the distributed ninja, cmake, etc.) I have to remove some lines from the [build-system]
. This is enough to "trick" the current build system:
sed -i -e '/conan/d' -e '/cmake/d' -e '/ninja/d' pyproject.toml
Then I can generate a wheel package with
DISABLE_CONAN=ON python -m build --wheel --no-isolation
Informations
What is the current behavior?
In one of my colleagues, this qiskit aer was working perfectly, he gave me the .yml(his environment) file where all the package list was there, and then I used the command "conda env create -f qiskit-aer.yml" after that i downloaded the qiskit aer from this github repo , , changed the directory to qiskit-aer , then i tried for this command "pip install ." here it is throwing this cmake conan error, i have added the snip of the error
Heres the error
" -- Conan: Automatic detection of conan settings from cmake -- Conan: Settings= -s;build_type=Release;-s;compiler=gcc;-s;compiler.version=8;-s;compiler.libcxx=libstdc++11 -- Conan: checking conan executable -- Conan: Found program /tmp/pip-build-env-igaei3a8/overlay/bin/conan -- Conan: Version found -- Conan executing: /tmp/pip-build-env-igaei3a8/overlay/bin/conan install . -s build_type=Release -s compiler=gcc -s compiler.version=8 -s compiler.libcxx=libstdc++11 -e=CONAN_CMAKE_PROGRAM=/tmp/pip-build-env-5scrclq2/overlay/lib/python3.10/site-packages/cmake/data/bin/cmake -g=cmake --build=missing CMake Error at cmake/conan.cmake:404 (message): Conan install failed='No such file or directory' Call Stack (most recent call first): cmake/conan.cmake:499 (conan_cmake_install) cmake/conan_utils.cmake:71 (conan_cmake_run) cmake/dependency_utils.cmake:20 (setup_conan) CMakeLists.txt:179 (setup_dependencies)
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for qiskit-aer Failed to build qiskit-aer ERROR: Could not build wheels for qiskit-aer, which is required to install pyproject.toml-based projects "
how to resolve this