I'm running mkdocs locally on my M1 mac and using poetry to manage my virtual environment. The same issue occurs if you use pip.
Bug descriptionTo use the social plugin, mkdocs requires installing pillow and cairosvg. Additionally, Cairo Graphics and its dependencies must be installed as stated in the docs. I'm using an M1 mac so I used the following command:
brew install cairo freetype libffi libjpeg libpng zlib
These libraries installed without issue. However, upon running mkdocs serve
I receive the following error:
OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
It appears to be looking for these libraries inside of the python installation instead of inside the homebrew folder. My current workaround is to use the following environment variable as mentioned in this issue:
export DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib
Related links
Reproduction
Steps to reproduce
pip install -r requirements.lock.txt
mkdocs serve
or mkdocs build
Other
Before submittingHaknt, KFlix9, brunodantas, benjaminlong, pflooky and 1 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4