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

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

Open
krzychb opened this issue Nov 16, 2023 · 4 comments

Comments

@krzychb
Copy link

krzychb commented Nov 16, 2023

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
Copy link
Author

krzychb commented Nov 17, 2023

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

@koao
Copy link

koao commented Apr 5, 2024

In my environment, uninstalling xcffib solved the problem.

pip uninstall xcffib

@NiJen
Copy link

NiJen commented Apr 19, 2024

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
Copy link

koao commented Apr 19, 2024

You need to install GTK separately.

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

GTK-for-Windows-Runtime-Environment-Installer

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

3 participants