flacjacket / pywlroots

Python binding to the wlroots library using cffi
University of Illinois/NCSA Open Source License
53 stars 15 forks source link

Issue building qtile wheels when with xkbcommon=1.0 #199

Closed elParaguayo closed 6 months ago

elParaguayo commented 6 months ago

We're looking to release a version of qtile to support wlroots 0.17. However, our release workflow fails to build wheels.

We get this error message in the build logs

  File "/opt/python/cp311-cp311/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/python/cp311-cp311/lib/python3.11/site-packages/wlroots/__init__.py", line 8, in <module>
    from ._ffi import ffi, lib
ImportError: while loading wlroots._ffi: failed to import ffi, lib from xkbcommon._ffi

Downgrading xkbcommon to 0.8 seems to fix this.

Any idea what's causing this?

elParaguayo commented 6 months ago

Looks like this is an issue with xkbcommon on manylinux. Sorry for the noise.