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

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

Closed
heuer opened this issue Mar 11, 2024 · 2 comments
Closed

Comments

@heuer
Copy link
Contributor

heuer commented Mar 11, 2024

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

heuer commented Mar 11, 2024

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 heuer closed this as completed Mar 11, 2024
@heuer
Copy link
Contributor Author

heuer commented Mar 11, 2024

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. ;)

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

1 participant