Conan 1.61 doesn't work with Python 3.12
Summary
Trying to compile on Python 3.12 fails due to an incompatibility of conan 1.61 with Python 3.12 (see here). This is fixed in conan 1.64.
'conan install' failed, trying to build from sources...
Traceback (most recent call last):
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/bin/conan", line 5, in <module>
from conans.conan import run
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/conan.py", line 7, in <module>
from conans.client.command import main
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/command.py", line 14, in <module>
from conans.client.conan_api import Conan, default_manifest_folder, _make_abs_path, ProfileData
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/conan_api.py", line 13, in <module>
from conans.client.cmd.create import create
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/cmd/create.py", line 3, in <module>
from conans.client.cmd.test import install_build_and_test
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/cmd/test.py", line 6, in <module>
from conans.client.manager import deps_install
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/manager.py", line 7, in <module>
from conans.client.installer import BinaryInstaller, call_system_requirements
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/installer.py", line 27, in <module>
from conans.model.graph_lock import GraphLockFile
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/model/graph_lock.py", line 7, in <module>
from conans.client.graph.python_requires import PyRequires
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/graph/python_requires.py", line 5, in <module>
from conans.client.loader import parse_conanfile
File "/home/joscha/caosdb/src/caosdb-cpplib/.env/lib64/python3.12/site-packages/conans/client/loader.py", line 2, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
Specifications
- Version: 0.2.2
- Platform: Fedora 39, Python 3.12
Possible fixes
Upgrade conan requirement to 1.64.0
Edited by Joscha Schmiedt