I was trying to use matplotlib to draw some figures, but the latest version turned out to be incompatible with some old packages in requirements.txt. Feel free to modify the version of matplotlib if you don't have a version as new as 3.7.1.
I changed symengine from 0.8.1 to 0.10.0 because
Collecting symengine==0.8.1
Using cached symengine-0.8.1.tar.gz (83 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level packages discovered in a flat-layout: ['cmake', 'symengine'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
and this issue is resolved in their latest version.
I changed the version of Qiskit because of some issue related to MSVC:
-- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
C:\Users\xmk\AppData\Local\Temp\pip-install-8gj6ughj\qiskit-aer_f43aa8aca812476da220469b2032031c\_skbuild\win-amd64-3.11\cmake-build
Command:
'C:\Users\xmk\AppData\Local\Temp\pip-build-env-6zq0l1w4\overlay\Lib\site-packages\cmake\data\bin\cmake' 'C:\Users\xmk\AppData\Local\Temp\pip-install-8gj6ughj\qiskit-aer_f43aa8aca812476da220469b2032031c' -G Ninja --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\xmk\AppData\Local\Temp\pip-install-8gj6ughj\qiskit-aer_f43aa8aca812476da220469b2032031c\_skbuild\win-amd64-3.11\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.11.2 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\xmk\AppData\Local\Temp\pip-build-env-6zq0l1w4\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=D:\Anaconda3\envs\quartz\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=D:\Anaconda3\envs\quartz\Include' '-DPYTHON_LIBRARY:PATH=D:\Anaconda3\envs\quartz\libs\python311.lib' '-DPython_EXECUTABLE:PATH=D:\Anaconda3\envs\quartz\python.exe' '-DPython_ROOT_DIR:PATH=D:\Anaconda3\envs\quartz' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=D:\Anaconda3\envs\quartz\Include' '-DPython_LIBRARY:PATH=D:\Anaconda3\envs\quartz\libs\python311.lib' '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\xmk\AppData\Local\Temp\pip-build-env-6zq0l1w4\overlay\Lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=D:\Anaconda3\envs\quartz\python.exe' '-DPython3_ROOT_DIR:PATH=D:\Anaconda3\envs\quartz' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=D:\Anaconda3\envs\quartz\Include' '-DPython3_LIBRARY:PATH=D:\Anaconda3\envs\quartz\libs\python311.lib' '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\xmk\AppData\Local\Temp\pip-build-env-6zq0l1w4\overlay\Lib\site-packages\numpy\core\include' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\xmk\AppData\Local\Temp\pip-build-env-6zq0l1w4\overlay\Lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE:STRING=Release
Not searching for unused variables given on the command line.
-- The CXX compiler identification is MSVC 19.29.30136.0
-- The C compiler identification is MSVC 19.29.30136.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test flag_supported
-- Performing Test flag_supported - Success
-- Performing Test flag_supported
-- Performing Test flag_supported - Success
-- Conan: Automatic detection of conan settings from cmake
-- Conan: Detected VS runtime: MD
-- Conan: Settings= -s;arch=x86_64;-s;build_type=Release;-s;compiler=Visual Studio;-s;compiler.version=16;-s;compiler.runtime=MD
-- Conan: checking conan executable
-- Conan: Found program C:/Users/xmk/AppData/Local/Temp/pip-build-env-6zq0l1w4/overlay/Scripts/conan.exe
-- Conan: Version found Conan version 2.0.4
-- Conan executing: C:/Users/xmk/AppData/Local/Temp/pip-build-env-6zq0l1w4/overlay/Scripts/conan.exe install . -s arch=x86_64 -s build_type=Release -s compiler=Visual Studio -s compiler.version=16 -s compiler.runtime=MD -e=CONAN_CMAKE_PROGRAM=C:/Users/xmk/AppData/Local/Temp/pip-build-env-6zq0l1w4/overlay/Lib/site-packages/cmake/data/bin/cmake.exe -g=cmake --build=missing
usage: conan install [-h] [-f FORMAT] [-v [V]] [--name NAME]
[--version VERSION] [--user USER] [--channel CHANNEL]
[--requires REQUIRES] [--tool-requires TOOL_REQUIRES]
[-b BUILD] [-r REMOTE | -nr] [-u] [-o OPTIONS_HOST]
[-o:b OPTIONS_BUILD] [-o:h OPTIONS_HOST]
[-pr PROFILE_HOST] [-pr:b PROFILE_BUILD]
[-pr:h PROFILE_HOST] [-s SETTINGS_HOST]
[-s:b SETTINGS_BUILD] [-s:h SETTINGS_HOST] [-c CONF_HOST]
[-c:b CONF_BUILD] [-c:h CONF_HOST] [-l LOCKFILE]
[--lockfile-partial] [--lockfile-out LOCKFILE_OUT]
[--lockfile-packages] [--lockfile-clean] [-g GENERATOR]
[-of OUTPUT_FOLDER] [--deploy DEPLOY] [--build-require]
[path]
conan install: error: unrecognized arguments: -e=CONAN_CMAKE_PROGRAM=C:/Users/xmk/AppData/Local/Temp/pip-build-env-6zq0l1w4/overlay/Lib/site-packages/cmake/data/bin/cmake.exe
ERROR: Exiting with code: 2
CMake Error at cmake/conan.cmake:402 (message):
Conan install failed='2'
I removed tweedledum because it did not compile.
I changed the versions of scipy and websocket-client to comply with the changes in the versions of some other packages.
Related issue = #73
I was trying to use
matplotlib
to draw some figures, but the latest version turned out to be incompatible with some old packages inrequirements.txt
. Feel free to modify the version ofmatplotlib
if you don't have a version as new as 3.7.1.I changed
symengine
from0.8.1
to0.10.0
becauseand this issue is resolved in their latest version.
I changed the version of Qiskit because of some issue related to MSVC:
I removed
tweedledum
because it did not compile.I changed the versions of
scipy
andwebsocket-client
to comply with the changes in the versions of some other packages.