A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/squidfunk/mkdocs-material/issues/5121 below:

Cairocffi can't find cairo library · Issue #5121 · squidfunk/mkdocs-material · GitHub

Context

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 description

To 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

example.zip

Steps to reproduce
  1. Create a virtual environment
  2. Run pip install -r requirements.lock.txt
  3. Run mkdocs serve or mkdocs build
Browser

Other

Before submitting

Haknt, 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