flacjacket / pywlroots

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

pywlroots 0.16.6: Strange error, XCursorManager has no method "set_cursor_image" #145

Closed heuer closed 6 months ago

heuer commented 6 months ago

I got a strange error that the XCursorManager has no attribute "set_cursor_image". So, I got a look:

Python 3.12.2 (main, Feb 15 2024, 06:47:30) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wlroots
>>> wlroots.__version__
'0.16.6'
>>> from wlroots.wlr_types.xcursor_manager import XCursorManager
>>> [n for n in dir(XCursorManager) if not n.startswith('__')]
['destroy', 'get_xcursor', 'load']
>>>

I haven't had time to look at it closely yet, the method is available in the source distribution. Maybe a wheel is broken? I'll get back to you later.

heuer commented 6 months ago

Nevermind, sorry for the useless report. I don't know what happened, but

pip install -U --no-cache-dir pywlroots 

fixed it.

>>> from wlroots.wlr_types.xcursor_manager import XCursorManager
>>> [n for n in dir(XCursorManager) if not n.startswith('__')]
['destroy', 'get_xcursor', 'load', 'set_cursor_image']
heuer commented 6 months ago

I know what happened: I installed the wlroots-next branch for testing purposes and forgot it. The wlroot-next branch reports (by mistake?) that it is 0.16.6.

wlroots 0.17.0 removes the above mentioned method.

Thanks for listening. ;)