sphinx-wavedrom
sphinx-wavedrom copied to clipboard
Projects with sphinxcontrib.wavedrom extension fail to build on Mac with M2 chip
Hi,
I have changed to a Mac with M2 silicon and started to have problems building some documentation.
In particular, when building documentation for a project that includes sphinxcontrib.wavedrom
, the build process fails with the following error:
en/esp32: Exception occurred:
en/esp32: File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cffi/api.py", line 827, in _load_backend_lib
en/esp32: raise OSError(msg)
en/esp32: OSError: cannot load library 'libxcb.dylib': dlopen(libxcb.dylib, 0x0002): tried: 'libxcb.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibxcb.dylib' (no such file), '/usr/lib/libxcb.dylib' (no such file, not in dyld cache), 'libxcb.dylib' (no such file), '/usr/lib/libxcb.dylib' (no such file, not in dyld cache). Additionally, ctypes.util.find_library() did not manage to locate a library called 'libxcb.dylib'
en/esp32: The full traceback has been saved in /var/folders/yp/p7hd77l93n58x0q7g3bvhnmc0000gp/T/sphinx-err-8e6xl5cc.log, if you want to report the issue to the developers.
This problem does not occur for earlier hw versions of Mac including M1 and Intel silicon.
After removing the extension from conf.py
the project builds correctly.
Do you see similar issues? Is there anything I can do to make my project build on Mac M2?
I see a similar issue related to libxcb
library reported in #36 for Windows.
In my environment, uninstalling xcffib solved the problem.
pip uninstall xcffib
If I uninstall xcffib, I got the error message in WIndows:
OSError: no library called "cairo-2" was found
also uninstall cairosvg, then iI come into some dependency problem.
You need to install GTK separately.
For Windows, you can install it from the following repository: