Collecting pydantic-core==2.20.1 (from pydantic->cosl)
:: :: Downloading pydantic_core-2.20.1.tar.gz (388 kB)
:: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 388.4/388.4 kB 64.0 MB/s eta 0:00:00
:: :: Installing build dependencies: started
:: :: Installing build dependencies: finished with status 'error'
:: :: error: subprocess-exited-with-error
:: ::
:: :: × pip subprocess to install build dependencies did not run successfully.
:: :: │ exit code: 1
:: :: ╰─> [61 lines of output]
:: :: Collecting maturin<2,>=1
:: :: Downloading maturin-1.7.0.tar.gz (188 kB)
:: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 188.3/188.3 kB 9.2 MB/s eta 0:00:00
:: :: Installing build dependencies: started
:: :: Installing build dependencies: finished with status 'done'
:: :: Getting requirements to build wheel: started
:: :: Getting requirements to build wheel: finished with status 'done'
:: :: Preparing metadata (pyproject.toml): started
:: :: Preparing metadata (pyproject.toml): finished with status 'done'
:: :: Collecting typing-extensions!=4.7.0,>=4.6.0
:: :: Using cached typing_extensions-4.12.2-py3-none-any.whl
:: :: Collecting tomli>=1.1.0 (from maturin<2,>=1)
:: :: Using cached tomli-2.0.1-py3-none-any.whl
:: :: Building wheels for collected packages: maturin
:: :: Building wheel for maturin (pyproject.toml): started
:: :: Building wheel for maturin (pyproject.toml): finished with status 'error'
:: :: error: subprocess-exited-with-error
:: ::
:: :: × Building wheel for maturin (pyproject.toml) did not run successfully.
:: :: │ exit code: 1
:: :: ╰─> [34 lines of output]
:: :: running bdist_wheel
:: :: running build
:: :: running build_py
:: :: creating build
:: :: creating build/lib.linux-x86_64-cpython-38
:: :: creating build/lib.linux-x86_64-cpython-38/maturin
:: :: copying maturin/__main__.py -> build/lib.linux-x86_64-cpython-38/maturin
:: :: copying maturin/__init__.py -> build/lib.linux-x86_64-cpython-38/maturin
:: :: running egg_info
:: :: creating maturin.egg-info
:: :: writing maturin.egg-info/PKG-INFO
:: :: writing dependency_links to maturin.egg-info/dependency_links.txt
:: :: writing requirements to maturin.egg-info/requires.txt
:: :: writing top-level names to maturin.egg-info/top_level.txt
:: :: writing manifest file 'maturin.egg-info/SOURCES.txt'
:: :: reading manifest file 'maturin.egg-info/SOURCES.txt'
:: :: reading manifest template 'MANIFEST.in'
:: :: /tmp/pip-build-env-1hrda6w2/overlay/lib/python3.8/site-packages/setuptools/config/_apply_pyprojecttoml.py:79: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
:: :: corresp(dist, value, root_dir)
:: :: warning: no files found matching '*.json' under directory 'src/python_interpreter'
:: :: writing manifest file 'maturin.egg-info/SOURCES.txt'
:: :: running build_ext
:: :: running build_rust
:: :: error: can't find Rust compiler
:: ::
:: :: If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
:: ::
:: :: To update pip, run:
:: ::
:: :: pip install --upgrade pip
:: ::
:: :: and then retry package installation.
:: ::
:: :: If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs)/ is the recommended way to download and update the Rust compiler toolchain.
:: :: [end of output]
:: ::
:: :: note: This error originates from a subprocess, and is likely not a problem with pip.
:: :: ERROR: Failed building wheel for maturin
:: :: Failed to build maturin
:: :: ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (maturin)
:: :: [end of output]
:: ::
:: :: note: This error originates from a subprocess, and is likely not a problem with pip.
:: :: error: subprocess-exited-with-error
:: ::
:: :: × pip subprocess to install build dependencies did not run successfully.
:: :: │ exit code: 1
:: :: ╰─> See above for output.
:: ::
:: :: note: This error originates from a subprocess, and is likely not a problem with pip.
:: Traceback (most recent call last):
:: File "/snap/charmcraft/3979/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 260, in _install_dependencies
:: _process_run(
:: File "/snap/charmcraft/3979/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 408, in _process_run
:: raise RuntimeError(f"Subprocess command {cmd} execution failed with retcode {retcode}")
:: RuntimeError: Subprocess command ['/root/parts/charm/build/staging-venv/bin/pip', 'install', '--no-binary=anyio,attrs,certifi,charmed-kubeflow-chisme,charset-normalizer,cosl,deepdiff,exceptiongroup,h11,httpcore,httpx,idna,importlib-resources,jinja2,jsonschema,lightkube,lightkube-models,markupsafe,ops,ordered-set,pip,pkgutil-resolve-name,pyrsistent,pyyaml,requests,ruamel-yaml,ruamel-yaml-clib,serialized-data-interface,setuptools,sniffio,tenacity,typing-extensions,urllib3,websocket-client,wheel,zipp', '--requirement=requirements.txt', 'pip', 'setuptools', 'wheel'] execution failed with retcode 1
Bug Description
Without any change the kubeflow-dashboard is now failing during charmcraft build with:
Example ci https://github.com/canonical/kubeflow-dashboard-operator/actions/runs/9969584674/job/27546809844?pr=216#step:5:732
To Reproduce
Build the charm
Environment
charmcraft 2.7.0
Relevant Log Output
Additional Context
No response