bavovanachte / sphinx-wavedrom

A sphinx extension that allows including wavedrom diagrams by using its text-based representation
MIT License
34 stars 18 forks source link

Projects with sphinxcontrib.wavedrom extension fail to build on Mac with M2 chip #50

Open krzychb opened 10 months ago

krzychb commented 10 months ago

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?

krzychb commented 10 months ago

I see a similar issue related to libxcb library reported in #36 for Windows.

koao commented 6 months ago

In my environment, uninstalling xcffib solved the problem.

pip uninstall xcffib

NiJen commented 5 months ago

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.

koao commented 5 months ago

You need to install GTK separately.

For Windows, you can install it from the following repository:

GTK-for-Windows-Runtime-Environment-Installer