Can't install reForge on MacOS
Package
reForge
When did the issue occur?
Installing the Package
What GPU / hardware type are you using?
Mac Studio M2
What happened?
I expected the install manager to successfully install reForge. It did not.
Console output
Could not install reforge (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Using Python 3.10.19 environment at: venv\nResolved 155 packages in 858ms\n Building pycairo==1.29.0\nDownloading transformers (9.2MiB)\nDownloading scikit-image (12.6MiB)\nDownloading numpy (13.3MiB)\nDownloading onnxruntime (16.4MiB)\nDownloading mediapipe (28.0MiB)\nDownloading opencv-contrib-python (44.1MiB)\nDownloading llvmlite (35.5MiB)\nDownloading opencv-python-headless (35.6MiB)\n Downloaded transformers\n \u00d7 Failed to build pycairo==1.29.0\n \u251c\u2500\u25b6 The build backend returned an error\n \u2570\u2500\u25b6 Call to mesonpy.build_wheel failed (exit status: 1)\n\n [stdout]\n + meson setup /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-e29qsywf\n -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md\n -Dwheel=true -Dtests=false --native-file=/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-e29qsywf/meson-python-native-file.ini\n The Meson build system\n Version: 1.11.0\n Source dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n Build dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-e29qsywf\n Build type: native build\n Project name: pycairo\n Project version: 1.29.0\n C compiler for the host machine: cc (clang 17.0.0 "Apple clang version\n 17.0.0 (clang-1700.6.3.2)")\n C linker for the host machine: cc ld64 1230.1\n Host machine cpu family: aarch64\n Host machine cpu: aarch64\n Program python3 found: YES (/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/builds-v0/.tmpXDTuPM/bin/python)\n Compiler for C supports arguments -Wall: YES\n Compiler for C supports arguments -Warray-bounds: YES\n Compiler for C supports arguments -Wcast-align: YES\n Compiler for C supports arguments -Wconversion: YES\n Compiler for C supports arguments -Wextra: YES\n Compiler for C supports arguments -Wformat=2: YES\n Compiler for C supports arguments -Wformat-nonliteral: YES\n Compiler for C supports arguments -Wformat-security: YES\n Compiler for C supports arguments -Wimplicit-function-declaration: YES\n Compiler for C supports arguments -Winit-self: YES\n Compiler for C supports arguments -Wmissing-format-attribute: YES\n Compiler for C supports arguments -Wmissing-noreturn: YES\n Compiler for C supports arguments -Wnested-externs: YES\n Compiler for C supports arguments -Wold-style-definition: YES\n Compiler for C supports arguments -Wpacked: YES\n Compiler for C supports arguments -Wpointer-arith: YES\n Compiler for C supports arguments -Wreturn-type: YES\n Compiler for C supports arguments -Wshadow: YES\n Compiler for C supports arguments -Wsign-compare: YES\n Compiler for C supports arguments -Wstrict-aliasing: YES\n Compiler for C supports arguments -Wundef: YES\n Compiler for C supports arguments -Wunused-but-set-variable: YES\n Compiler for C supports arguments -Wswitch-default: YES\n Compiler for C supports arguments -Wno-missing-field-initializers: YES\n Compiler for C supports arguments -Wno-unused-parameter: YES\n Compiler for C supports arguments -fno-strict-aliasing: YES\n Compiler for C supports arguments -fvisibility=hidden: YES\n Did not find pkg-config by name 'pkg-config'\n Found pkg-config: NO\n Did not find CMake 'cmake'\n Found CMake: NO\n Run-time dependency cairo found: NO (tried framework)\n\n ../cairo/meson.build:31:12: ERROR: Dependency lookup for cairo with\n method 'pkg-config' failed: Pkg-config for machine host machine not\n found. Giving up.\n\n A full log can be found at /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-e29qsywf/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.29.0) was included because svglib (v1.6.0) depends on\n rlpycairo (v0.4.0) which depends on pycairo\n'
at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Python/UvVenvRunner.cs:line 270 at StabilityMatrix.Core.Models.Packages.BaseGitPackage.StandardPipInstallProcessAsync(IPyVenvRunner venvRunner, InstallPackageOptions options, InstalledPackage installedPackage, PipInstallConfig config, Action1 onConsoleOutput, IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/BaseGitPackage.cs:line 960 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 204 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 215 at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/InstallPackageStep.cs:line 19
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs:line 35)
Version
v2.15.7
What Operating System are you using?
macOS
Set up homebrew on your Mac if you haven't (https://brew.sh) and the run this in the terminal:
brew install cairo pkg-config
Not a requirement or bug with SM itself, but some packages require system level Cairo 2D graphics library. This does not come included with Mac OS. (And Linux)
reforge, and possibly a couple other Gradio based packages, have pycairo it installs into its venv which gets compiled against Cairo installed in the system.
Tried it, but it still doesn't work. (And I do think it's a bug when an app that solely exists to install stuff fails to install stuff.)
New error message:
Could not install reforge (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Using Python 3.10.19 environment at: venv\nResolved 155 packages in 222ms\n Building pycairo==1.29.0\nDownloading scikit-image (12.6MiB)\nDownloading opencv-python-headless (35.6MiB)\nDownloading llvmlite (35.5MiB)\nDownloading onnxruntime (16.4MiB)\nDownloading opencv-contrib-python (44.1MiB)\nDownloading mediapipe (28.0MiB)\n \u00d7 Failed to build pycairo==1.29.0\n \u251c\u2500\u25b6 The build backend returned an error\n \u2570\u2500\u25b6 Call to mesonpy.build_wheel failed (exit status: 1)\n\n [stdout]\n + meson setup /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-0fo3934c\n -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md\n -Dwheel=true -Dtests=false --native-file=/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-0fo3934c/meson-python-native-file.ini\n The Meson build system\n Version: 1.11.1\n Source dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n Build dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-0fo3934c\n Build type: native build\n Project name: pycairo\n Project version: 1.29.0\n C compiler for the host machine: cc (clang 17.0.0 "Apple clang version\n 17.0.0 (clang-1700.6.3.2)")\n C linker for the host machine: cc ld64 1230.1\n Host machine cpu family: aarch64\n Host machine cpu: aarch64\n Program python3 found: YES (/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/builds-v0/.tmppEBy73/bin/python)\n Compiler for C supports arguments -Wall: YES\n Compiler for C supports arguments -Warray-bounds: YES\n Compiler for C supports arguments -Wcast-align: YES\n Compiler for C supports arguments -Wconversion: YES\n Compiler for C supports arguments -Wextra: YES\n Compiler for C supports arguments -Wformat=2: YES\n Compiler for C supports arguments -Wformat-nonliteral: YES\n Compiler for C supports arguments -Wformat-security: YES\n Compiler for C supports arguments -Wimplicit-function-declaration: YES\n Compiler for C supports arguments -Winit-self: YES\n Compiler for C supports arguments -Wmissing-format-attribute: YES\n Compiler for C supports arguments -Wmissing-noreturn: YES\n Compiler for C supports arguments -Wnested-externs: YES\n Compiler for C supports arguments -Wold-style-definition: YES\n Compiler for C supports arguments -Wpacked: YES\n Compiler for C supports arguments -Wpointer-arith: YES\n Compiler for C supports arguments -Wreturn-type: YES\n Compiler for C supports arguments -Wshadow: YES\n Compiler for C supports arguments -Wsign-compare: YES\n Compiler for C supports arguments -Wstrict-aliasing: YES\n Compiler for C supports arguments -Wundef: YES\n Compiler for C supports arguments -Wunused-but-set-variable: YES\n Compiler for C supports arguments -Wswitch-default: YES\n Compiler for C supports arguments -Wno-missing-field-initializers: YES\n Compiler for C supports arguments -Wno-unused-parameter: YES\n Compiler for C supports arguments -fno-strict-aliasing: YES\n Compiler for C supports arguments -fvisibility=hidden: YES\n Did not find pkg-config by name 'pkg-config'\n Found pkg-config: NO\n Did not find CMake 'cmake'\n Found CMake: NO\n Run-time dependency cairo found: NO (tried framework)\n\n ../cairo/meson.build:31:12: ERROR: Dependency lookup for cairo with\n method 'pkg-config' failed: Pkg-config for machine host machine not\n found. Giving up.\n\n A full log can be found at /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-0fo3934c/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.29.0) was included because svglib (v1.6.0) depends on\n rlpycairo (v0.4.0) which depends on pycairo\n'
at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Python/UvVenvRunner.cs:line 270 at StabilityMatrix.Core.Models.Packages.BaseGitPackage.StandardPipInstallProcessAsync(IPyVenvRunner venvRunner, InstallPackageOptions options, InstalledPackage installedPackage, PipInstallConfig config, Action1 onConsoleOutput, IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/BaseGitPackage.cs:line 960 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 204 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 215 at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/InstallPackageStep.cs:line 19
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs:line 35)
OK, when I restart SM I found that it actually did install something, albeit broken. There was a button named "Import". I thought what the hell you only live once and clicked it to see what would happen. The install then completed (!).
But when trying to open reForge it fails to start up with the error message:
"RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check"
I did so by editing the webui-user.sh file. The same error keeps happening anyway. And BTW, the file webui-macos-env.sh already has the line:
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
...so this shouldn't be necessary to change in webui-user.sh at all. As far as I understand it.
It's also trying to find CMAKE on the system for the compilation process. It will need to be installed with homebrew also ( brew install cmake ).
OK tried to install CMAKE as instructed. Failed with new error message. Restarted SM. Clicked the "Import" button. Install completed. When starting up reForge, it failed with the same error:
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
The install error message:
Could not install reforge (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Using Python 3.10.19 environment at: venv\nResolved 155 packages in 772ms\n Building pycairo==1.29.0\nDownloading scikit-image (12.6MiB)\nDownloading llvmlite (35.5MiB)\nDownloading opencv-contrib-python (44.1MiB)\nDownloading onnxruntime (16.4MiB)\nDownloading mediapipe (28.0MiB)\nDownloading opencv-python-headless (35.6MiB)\n Downloaded scikit-image\n \u00d7 Failed to build pycairo==1.29.0\n \u251c\u2500\u25b6 The build backend returned an error\n \u2570\u2500\u25b6 Call to mesonpy.build_wheel failed (exit status: 1)\n\n [stdout]\n + meson setup /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-jkn8yidd\n -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md\n -Dwheel=true -Dtests=false --native-file=/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-jkn8yidd/meson-python-native-file.ini\n The Meson build system\n Version: 1.11.1\n Source dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n Build dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-jkn8yidd\n Build type: native build\n Project name: pycairo\n Project version: 1.29.0\n C compiler for the host machine: cc (clang 17.0.0 "Apple clang version\n 17.0.0 (clang-1700.6.3.2)")\n C linker for the host machine: cc ld64 1230.1\n Host machine cpu family: aarch64\n Host machine cpu: aarch64\n Program python3 found: YES (/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/builds-v0/.tmpyU3dDn/bin/python)\n Compiler for C supports arguments -Wall: YES\n Compiler for C supports arguments -Warray-bounds: YES\n Compiler for C supports arguments -Wcast-align: YES\n Compiler for C supports arguments -Wconversion: YES\n Compiler for C supports arguments -Wextra: YES\n Compiler for C supports arguments -Wformat=2: YES\n Compiler for C supports arguments -Wformat-nonliteral: YES\n Compiler for C supports arguments -Wformat-security: YES\n Compiler for C supports arguments -Wimplicit-function-declaration: YES\n Compiler for C supports arguments -Winit-self: YES\n Compiler for C supports arguments -Wmissing-format-attribute: YES\n Compiler for C supports arguments -Wmissing-noreturn: YES\n Compiler for C supports arguments -Wnested-externs: YES\n Compiler for C supports arguments -Wold-style-definition: YES\n Compiler for C supports arguments -Wpacked: YES\n Compiler for C supports arguments -Wpointer-arith: YES\n Compiler for C supports arguments -Wreturn-type: YES\n Compiler for C supports arguments -Wshadow: YES\n Compiler for C supports arguments -Wsign-compare: YES\n Compiler for C supports arguments -Wstrict-aliasing: YES\n Compiler for C supports arguments -Wundef: YES\n Compiler for C supports arguments -Wunused-but-set-variable: YES\n Compiler for C supports arguments -Wswitch-default: YES\n Compiler for C supports arguments -Wno-missing-field-initializers: YES\n Compiler for C supports arguments -Wno-unused-parameter: YES\n Compiler for C supports arguments -fno-strict-aliasing: YES\n Compiler for C supports arguments -fvisibility=hidden: YES\n Did not find pkg-config by name 'pkg-config'\n Found pkg-config: NO\n Did not find CMake 'cmake'\n Found CMake: NO\n Run-time dependency cairo found: NO (tried framework)\n\n ../cairo/meson.build:31:12: ERROR: Dependency lookup for cairo with\n method 'pkg-config' failed: Pkg-config for machine host machine not\n found. Giving up.\n\n A full log can be found at /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-jkn8yidd/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.29.0) was included because svglib (v1.6.0) depends on\n rlpycairo (v0.4.0) which depends on pycairo\n'
at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Python/UvVenvRunner.cs:line 270 at StabilityMatrix.Core.Models.Packages.BaseGitPackage.StandardPipInstallProcessAsync(IPyVenvRunner venvRunner, InstallPackageOptions options, InstalledPackage installedPackage, PipInstallConfig config, Action1 onConsoleOutput, IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/BaseGitPackage.cs:line 960 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 204 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 215 at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/InstallPackageStep.cs:line 19
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs:line 35)
Have you rebooted or relogged your mac since installing the homebrew packages?
Homebrew has its packages located in the /opt/homebrew directory and for SM, or apps in general, to find and use the needed binary dependencies its looking for, homebrew's /opt/homebrew/bin directory needs to be added to your PATH.
Rebooting should quickly fix this, or adding the PATH variable in SM Settings > Environment Variables with the value of : /opt/homebrew/bin
Just verified this on my mac mini and successfully installed reforge. Its been a long while since dealt with this on my macs.
Well, I had not restarted, my mac tends to stay on for months on end, but I did so now. Uninstalled the broken reForge install, added the PATH in SM settings as instructed.
Install failed again, same song and dance as before to make it finish the install, still fails to run with the same runtime error.
I'm grateful for your attempts to help, but I'm actually starting to wonder what the value proposition is for this piece of software. A package installer that can't install packages feels kind of useless to me. And I see it's not just a Mac issue, people on Linux and Windows apparently have open issues too.
The homepage for SM let's people buy vote power to vote for new features. I think they should fix the core functionality before worrying about adding more random features. As it is it seems I'll have to resort to installing manually. Which I have done before, both A1111 and the original Forge. I just thought it would be more convenient to use SM. It's clearly not.
My latest install error:
Could not install reforge (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Using Python 3.10.19 environment at: venv\nResolved 155 packages in 411ms\n Building pycairo==1.29.0\nDownloading opencv-contrib-python (44.1MiB)\nDownloading mediapipe (28.0MiB)\nDownloading opencv-python-headless (35.6MiB)\nDownloading llvmlite (35.5MiB)\n \u00d7 Failed to build pycairo==1.29.0\n \u251c\u2500\u25b6 The build backend returned an error\n \u2570\u2500\u25b6 Call to mesonpy.build_wheel failed (exit status: 1)\n\n [stdout]\n + meson setup /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-5r7zvbv0\n -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md\n -Dwheel=true -Dtests=false --native-file=/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-5r7zvbv0/meson-python-native-file.ini\n The Meson build system\n Version: 1.11.1\n Source dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n Build dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-5r7zvbv0\n Build type: native build\n Project name: pycairo\n Project version: 1.29.0\n C compiler for the host machine: cc (clang 17.0.0 "Apple clang version\n 17.0.0 (clang-1700.6.3.2)")\n C linker for the host machine: cc ld64 1230.1\n Host machine cpu family: aarch64\n Host machine cpu: aarch64\n Program python3 found: YES (/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/builds-v0/.tmp3XN4A5/bin/python)\n Compiler for C supports arguments -Wall: YES\n Compiler for C supports arguments -Warray-bounds: YES\n Compiler for C supports arguments -Wcast-align: YES\n Compiler for C supports arguments -Wconversion: YES\n Compiler for C supports arguments -Wextra: YES\n Compiler for C supports arguments -Wformat=2: YES\n Compiler for C supports arguments -Wformat-nonliteral: YES\n Compiler for C supports arguments -Wformat-security: YES\n Compiler for C supports arguments -Wimplicit-function-declaration: YES\n Compiler for C supports arguments -Winit-self: YES\n Compiler for C supports arguments -Wmissing-format-attribute: YES\n Compiler for C supports arguments -Wmissing-noreturn: YES\n Compiler for C supports arguments -Wnested-externs: YES\n Compiler for C supports arguments -Wold-style-definition: YES\n Compiler for C supports arguments -Wpacked: YES\n Compiler for C supports arguments -Wpointer-arith: YES\n Compiler for C supports arguments -Wreturn-type: YES\n Compiler for C supports arguments -Wshadow: YES\n Compiler for C supports arguments -Wsign-compare: YES\n Compiler for C supports arguments -Wstrict-aliasing: YES\n Compiler for C supports arguments -Wundef: YES\n Compiler for C supports arguments -Wunused-but-set-variable: YES\n Compiler for C supports arguments -Wswitch-default: YES\n Compiler for C supports arguments -Wno-missing-field-initializers: YES\n Compiler for C supports arguments -Wno-unused-parameter: YES\n Compiler for C supports arguments -fno-strict-aliasing: YES\n Compiler for C supports arguments -fvisibility=hidden: YES\n Did not find pkg-config by name 'pkg-config'\n Found pkg-config: NO\n Did not find CMake 'cmake'\n Found CMake: NO\n Run-time dependency cairo found: NO (tried framework)\n\n ../cairo/meson.build:31:12: ERROR: Dependency lookup for cairo with\n method 'pkg-config' failed: Pkg-config for machine host machine not\n found. Giving up.\n\n A full log can be found at /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-5r7zvbv0/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.29.0) was included because svglib (v1.6.0) depends on\n rlpycairo (v0.4.0) which depends on pycairo\n'
at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Python/UvVenvRunner.cs:line 270 at StabilityMatrix.Core.Models.Packages.BaseGitPackage.StandardPipInstallProcessAsync(IPyVenvRunner venvRunner, InstallPackageOptions options, InstalledPackage installedPackage, PipInstallConfig config, Action1 onConsoleOutput, IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/BaseGitPackage.cs:line 960 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 204 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 215 at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/InstallPackageStep.cs:line 19
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs:line 35)
run in the terminal and then either launch SM from a new terminal session (so it inherits the variable), or reboot.
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zprofile
Ran it, rebooted, tried again, still failed. Apparently it can't build pycairo because it still can't find cmake. I don't know what's going on, because I checked and cmake does exist in /opt/homebrew/bin. This is what my .zprofile looks like:
Setting PATH for Python 3.10
The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.10/bin:${PATH}" export PATH
eval "$(/opt/homebrew/bin/brew shellenv)"
Setting PATH for Python 3.11
The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}" export PATH
export PATH="~/.local/bin:$PATH"export PATH="/opt/homebrew/bin:$PATH"
And this is the error message:
Could not install reforge (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Using Python 3.10.19 environment at: venv\nResolved 155 packages in 995ms\n Building pycairo==1.29.0\nDownloading opencv-contrib-python (44.1MiB)\nDownloading mediapipe (28.0MiB)\nDownloading llvmlite (35.5MiB)\nDownloading opencv-python-headless (35.6MiB)\n \u00d7 Failed to build pycairo==1.29.0\n \u251c\u2500\u25b6 The build backend returned an error\n \u2570\u2500\u25b6 Call to mesonpy.build_wheel failed (exit status: 1)\n\n [stdout]\n + meson setup /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-2df9k2_e\n -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md\n -Dwheel=true -Dtests=false --native-file=/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-2df9k2_e/meson-python-native-file.ini\n The Meson build system\n Version: 1.11.1\n Source dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src\n Build dir: /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-2df9k2_e\n Build type: native build\n Project name: pycairo\n Project version: 1.29.0\n C compiler for the host machine: cc (clang 17.0.0 "Apple clang version\n 17.0.0 (clang-1700.6.3.2)")\n C linker for the host machine: cc ld64 1230.1\n Host machine cpu family: aarch64\n Host machine cpu: aarch64\n Program python3 found: YES (/Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/builds-v0/.tmpw51Aoy/bin/python)\n Compiler for C supports arguments -Wall: YES\n Compiler for C supports arguments -Warray-bounds: YES\n Compiler for C supports arguments -Wcast-align: YES\n Compiler for C supports arguments -Wconversion: YES\n Compiler for C supports arguments -Wextra: YES\n Compiler for C supports arguments -Wformat=2: YES\n Compiler for C supports arguments -Wformat-nonliteral: YES\n Compiler for C supports arguments -Wformat-security: YES\n Compiler for C supports arguments -Wimplicit-function-declaration: YES\n Compiler for C supports arguments -Winit-self: YES\n Compiler for C supports arguments -Wmissing-format-attribute: YES\n Compiler for C supports arguments -Wmissing-noreturn: YES\n Compiler for C supports arguments -Wnested-externs: YES\n Compiler for C supports arguments -Wold-style-definition: YES\n Compiler for C supports arguments -Wpacked: YES\n Compiler for C supports arguments -Wpointer-arith: YES\n Compiler for C supports arguments -Wreturn-type: YES\n Compiler for C supports arguments -Wshadow: YES\n Compiler for C supports arguments -Wsign-compare: YES\n Compiler for C supports arguments -Wstrict-aliasing: YES\n Compiler for C supports arguments -Wundef: YES\n Compiler for C supports arguments -Wunused-but-set-variable: YES\n Compiler for C supports arguments -Wswitch-default: YES\n Compiler for C supports arguments -Wno-missing-field-initializers: YES\n Compiler for C supports arguments -Wno-unused-parameter: YES\n Compiler for C supports arguments -fno-strict-aliasing: YES\n Compiler for C supports arguments -fvisibility=hidden: YES\n Did not find pkg-config by name 'pkg-config'\n Found pkg-config: NO\n Did not find CMake 'cmake'\n Found CMake: NO\n Run-time dependency cairo found: NO (tried framework)\n\n ../cairo/meson.build:31:12: ERROR: Dependency lookup for cairo with\n method 'pkg-config' failed: Pkg-config for machine host machine not\n found. Giving up.\n\n A full log can be found at /Volumes/External\n One/_StabilityMatrix/Data/Assets/uv/cache/sdists-v9/pypi/pycairo/1.29.0/eBKnWvSsD0uVzArXrqHL-/src/.mesonpy-2df9k2_e/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.29.0) was included because svglib (v1.6.0) depends on\n rlpycairo (v0.4.0) which depends on pycairo\n'
at StabilityMatrix.Core.Python.UvVenvRunner.PipInstall(ProcessArgs args, Action1 outputDataReceived) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Python/UvVenvRunner.cs:line 270 at StabilityMatrix.Core.Models.Packages.BaseGitPackage.StandardPipInstallProcessAsync(IPyVenvRunner venvRunner, InstallPackageOptions options, InstalledPackage installedPackage, PipInstallConfig config, Action1 onConsoleOutput, IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/BaseGitPackage.cs:line 960 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 204 at StabilityMatrix.Core.Models.Packages.SDWebForge.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress1 progress, Action1 onConsoleOutput, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/Packages/SDWebForge.cs:line 215 at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress1 progress, CancellationToken cancellationToken) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/InstallPackageStep.cs:line 19
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Models/PackageModification/PackageModificationRunner.cs:line 35)
Also doesn't work for me on macOS (can't install reforge) and hasn't anytime I've tried it recently over the past few months. Homebrew is set up properly. If it matters, I also use uv extensively, independent of this software, so maybe that's messing it up. Given up for now unless there's some new trick to try.
This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.
This issue was closed because it has been stale for 7 days with no activity.