-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension not working on Mac M2 Max #397
Comments
I have this running on a 16" MacBook Pro with an M2 processor and Sonoma 14.2.1. I only recently obtained this machine and access to local AI/ML tools so my experience is not very deep yet. However, I do have experience writing and troubleshooting software. Background:
These are not necessary as far as I know, especially the .venv mod. I just want to help anybody else who lands here understand how I got to functional. It's important to understand that I modified a package outside of stable-diffusion-webui to make this work. If you have other Python code, and you're not using virtual environments of some sort, you may break other things by doing this...or you may accidentally fix them 😂 As described by the accepted answer at stackoverflow ...
The correct answer also mentions ...
But I wouldn't hold out for this since Python has already had new versions since, and stable-diffusion-webui is built around an older version. Here's what I did:
I successfully generated a test depth map on an image after I did this. |
^ incredible writeup and workaround - editing cocoapy.py in the dependencies worked great for me - thanks @myspoonistoobig ! Some further reading re: library cache that I found helpful: https://forums.developer.apple.com/forums/thread/655588 |
*** Error loading script: depthmap_api.py
Traceback (most recent call last):
File "/Users/daniel/stable-diffusion-webui/modules/scripts.py", line 469, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/Users/daniel/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/daniel/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap_api.py", line 16, in
from src.core import core_generation_funnel, run_makevideo
File "/Users/daniel/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 27, in
from inpaint.mesh import write_mesh, read_mesh, output_3d_photo
File "/Users/daniel/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/inpaint/mesh.py", line 12, in
from vispy import scene, io
File "/Users/daniel/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/init.py", line 27, in
from .util import config, set_log_level, keys, sys_info # noqa
File "/Users/daniel/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/util/init.py", line 14, in
from . import fonts # noqa
File "/Users/daniel/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/util/fonts/init.py", line 13, in
from ._triage import _load_glyph, list_fonts # noqa, analysis:ignore
File "/Users/daniel/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/util/fonts/_triage.py", line 14, in
from ._quartz import _load_glyph, _list_fonts
File "/Users/daniel/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/util/fonts/_quartz.py", line 12, in
from ...ext.cocoapy import cf, ct, quartz, CFRange, CFSTR, CGGlyph, UniChar,
File "/Users/daniel/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/ext/cocoapy.py", line 1288, in
quartz = cdll.LoadLibrary(util.find_library('quartz'))
File "/opt/homebrew/Cellar/python@3.10/3.10.13_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/init.py", line 452, in LoadLibrary
return self._dlltype(name)
File "/opt/homebrew/Cellar/python@3.10/3.10.13_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(Quartz.framework/Quartz, 0x0006): tried: 'Quartz.framework/Quartz' (no such file), '/System/Volumes/Preboot/Cryptexes/OSQuartz.framework/Quartz' (no such file), '/opt/homebrew/lib/Quartz.framework/Quartz' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/Quartz.framework/Quartz' (no such file), '/usr/lib/Quartz.framework/Quartz' (no such file, not in dyld cache), 'Quartz.framework/Quartz' (no such file)
The text was updated successfully, but these errors were encountered: