Skip to content
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

OSError: no library called "cairo-2" was found #34

Open
livid opened this issue Dec 17, 2021 · 1 comment
Open

OSError: no library called "cairo-2" was found #34

livid opened this issue Dec 17, 2021 · 1 comment

Comments

@livid
Copy link
Collaborator

livid commented Dec 17, 2021

cairo is the dependency for SVG support. However, when I installed it on macOS via brew, its Python library had difficulty finding it:

Screen Shot 2021-12-17 at 10 43 07 AM

Probably due to SIP or some other reason I currently do now know, modifying DYLD or LD environment variables cannot do the trick. Now I had to link the dylib from opt to usr/local:

sudo ln -s /opt/homebrew/lib/libcairo.2.dylib /usr/local/lib/

I wonder if there is a better way to handle this on macOS 12.

@luxiaba
Copy link
Contributor

luxiaba commented Dec 18, 2021

Same issue before.
Same solution as yours.
Same doubts now.😅

It seems that it's issue aboue ctypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants