Python 3.10.17 was not found and/or failed to install
What happened?
Python 3.10.17 was not found and/or failed to install
Steps to reproduce
I open the Appimage with Ubuntu.... first choose: trying to install Forge WebUI with Stabilty Matrix => This error
Relevant logs
Unpacking resources
Unpacking resources
Download complete!
Installing UV package manager...
UV installation complete
Download complete!
Error: StabilityMatrix.Core.Exceptions.MissingPrerequisiteException: Python 3.10.17 was not found and/or failed to install. Please check the logs for more details.
at StabilityMatrix.Avalonia.Helpers.UnixPrerequisiteHelper.InstallPackageRequirements(List1 prerequisites, Nullable1 pyVersion, IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.SetupPrerequisitesStep.ExecuteAsync(IProgress1 progress)
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps)
Version
2.15.4
What Operating System are you using?
Linux
Addendum: My operating system is: Ubuntu 24.04.3 LTS (fresh install)
Seem to be like the bug issue: https://github.com/LykosAI/StabilityMatrix/issues/1401
Weird:
The welcome screen with the first choice of a package not working....
BUT
when i install by myself after a package from the list, It's seem to work.... There's a cool error message for me saying i must install GIT by doing this: Sudo apt install git
And after installing Git, i can click on "Retry"......
So let's go ! Ok, fine ! => seem to work (Python was found (maybe ?))
I cross the fingers
Nope:
"Unpacking resources Unpacking resources Download Complete Using Python 3.10.18 environment at: venv Resolved 2 packages in 550ms Prepared 1 package in 0.81ms Installed 1 package in 8ms
-
wheel==0.45.1 Using Python 3.10.18 environment at: venv Resolved 1 package in 2ms Installed 1 package in 7ms
-
joblib==1.5.2 Using Python 3.10.18 environment at: venv Resolved 196 packages in 2.45s Building pycairo==1.28.0 Downloading matplotlib (8.3MiB) Downloading ruff (12.7MiB) Downloading av (37.9MiB) Downloading scikit-image (13.1MiB) Downloading pillow-avif-plugin (7.7MiB) Downloading onnxruntime (16.6MiB) Downloading jaxlib (85.8MiB) Downloading tensorboard-data-server (6.3MiB) Downloading mediapipe (34.0MiB) Downloading torchvision (7.7MiB) Downloading opencv-python (60.1MiB) Downloading opencv-contrib-python (65.9MiB) Downloading transformers (9.6MiB) Downloading grpcio (6.3MiB) Downloading gradio (11.9MiB) Downloading scipy (35.9MiB) Downloading numpy (17.4MiB) Downloading pandas (12.2MiB) Downloading llvmlite (53.7MiB) × Failed to build
pycairo==1.28.0├─▶ The build backend returned an error ╰─▶ Call tomesonpy.build_wheelfailed (exit status: 1)[stdout]
- meson setup /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dwheel=true -Dtests=false --native-file=/home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5/meson-python-native-file.ini The Meson build system Version: 1.9.1 Source dir: /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src Build dir: /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5 Build type: native build Project name: pycairo Project version: 1.28.0
../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']] The following exception(s) were encountered: Running
cc --versiongave "[Errno 2] No such file or directory: 'cc'" Runninggcc --versiongave "[Errno 2] No such file or directory: 'gcc'" Runningclang --versiongave "[Errno 2] No such file or directory: 'clang'" Runningnvc --versiongave "[Errno 2] No such file or directory: 'nvc'" Runningpgcc --versiongave "[Errno 2] No such file or directory: 'pgcc'" Runningicc --versiongave "[Errno 2] No such file or directory: 'icc'" Runningicx --versiongave "[Errno 2] No such file or directory: 'icx'"A full log can be found at /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5/meson-logs/meson-log.txt
hint: This usually indicates a problem with the package or the build environment. help:
pycairo(v1.28.0) was included becausesvglib(v1.6.0) depends onrlpycairo(v0.4.0) which depends onpycairoCould not install stable-diffusion-webui-forge (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Using Python 3.10.18 environment at: venv\nResolved 196 packages in 2.45s\n Building pycairo==1.28.0\nDownloading matplotlib (8.3MiB)\nDownloading ruff (12.7MiB)\nDownloading av (37.9MiB)\nDownloading scikit-image (13.1MiB)\nDownloading pillow-avif-plugin (7.7MiB)\nDownloading onnxruntime (16.6MiB)\nDownloading jaxlib (85.8MiB)\nDownloading tensorboard-data-server (6.3MiB)\nDownloading mediapipe (34.0MiB)\nDownloading torchvision (7.7MiB)\nDownloading opencv-python (60.1MiB)\nDownloading opencv-contrib-python (65.9MiB)\nDownloading transformers (9.6MiB)\nDownloading grpcio (6.3MiB)\nDownloading gradio (11.9MiB)\nDownloading scipy (35.9MiB)\nDownloading numpy (17.4MiB)\nDownloading pandas (12.2MiB)\nDownloading llvmlite (53.7MiB)\n \u00d7 Failed to buildpycairo==1.28.0\n \u251c\u2500\u25b6 The build backend returned an error\n \u2570\u2500\u25b6 Call tomesonpy.build_wheelfailed (exit status: 1)\n\n [stdout]\n + meson setup\n /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src\n /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5\n -Dbuildtype=release -Db_ndebug=if-release\n -Db_vscrt=md -Dwheel=true -Dtests=false\n --native-file=/home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5/meson-python-native-file.ini\n The Meson build system\n Version: 1.9.1\n Source dir:\n /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src\n Build dir:\n /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5\n Build type: native build\n Project name: pycairo\n Project version: 1.28.0\n\n ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'],\n ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]\n The following exception(s) were encountered:\n Runningcc --versiongave "[Errno 2] No such file or directory: 'cc'"\n Runninggcc --versiongave "[Errno 2] No such file or directory:\n 'gcc'"\n Runningclang --versiongave "[Errno 2] No such file or directory:\n 'clang'"\n Runningnvc --versiongave "[Errno 2] No such file or directory:\n 'nvc'"\n Runningpgcc --versiongave "[Errno 2] No such file or directory:\n 'pgcc'"\n Runningicc --versiongave "[Errno 2] No such file or directory:\n 'icc'"\n Runningicx --versiongave "[Errno 2] No such file or directory:\n 'icx'"\n\n A full log can be found at\n /home/ubuntu/Appimage/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.28.0/hftv11TFrXFlksF3VlK5-/src/.mesonpy-tc8rj7r5/meson-logs/meson-log.txt\n\n hint: This usually indicates a problem with the package or the build\n environment.\n help:pycairo(v1.28.0) was included becausesvglib(v1.6.0) depends on\nrlpycairo(v0.4.0) which depends onpycairo\n' at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) at StabilityMatrix.Core.Models.Packages.BaseGitPackage.StandardPipInstallProcessAsync(IPyVenvRunner venvRunner, InstallPackageOptions options, InstalledPackage installedPackage, PipInstallConfig config, Action1 onConsoleOutput, IProgress1 progress, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps))
huhuhu....
Solved in Ubuntu by this:
sudo apt update
sudo apt install -y build-essential pkg-config python3-dev libcairo2-dev
It's installed now ....