ich möchte dieses https://de.acervolima.com/zauberstab-po ... in-python/ Script zum Laufen bringen und habe auf meinem Mac (Monterey 12.4) mit homebrew imagemagick installiert. Anschließend habe ich dieser https://stackoverflow.com/questions/342 ... -to-python Anleitung entsprechend wand installiert.
Code: Alles auswählen
import wand
Code: Alles auswählen
from wand.image import Image
Code: Alles auswählen
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/wand/api.py", line 151, in <module>
libraries = load_library()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/wand/api.py", line 140, in load_library
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
OSError: cannot find library; tried paths: []
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
from wand.image import Image
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/wand/image.py", line 18, in <module>
from . import assertions
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/wand/assertions.py", line 155, in <module>
from .color import Color # noqa: E402
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/wand/color.py", line 10, in <module>
from .api import library
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/wand/api.py", line 175, in <module>
raise ImportError('MagickWand shared library not found.\n'
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
https://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-mac
Code: Alles auswählen
Warning: imagemagick 7.1.0-39 is already installed and up-to-date.
To reinstall 7.1.0-39, run:
brew reinstall imagemagick