#1074784 wminput: PyCapsule_GetPointer called with incorrect name

Package:
wminput
Source:
wminput
Description:
Userspace driver for the wiimote
Submitter:
PJ Weisberg
Date:
2025-02-25 20:39:01 UTC
Severity:
normal
#1074784#5
Date:
2024-07-02 03:27:57 UTC
From:
To:
Dear Maintainer,

When I start wminput, after I put the Wiimote in discoverable mode
wminput prints `ValueError: PyCapsule_GetPointer called with incorrect
name` and immediately exits.

I downloaded the source package and edited `python/Wiimote.c` to pass
NULL into PyCapsule_GetPointer instead of "dynamr", and that worked
when I built and installed it.

I don't know enough to know whether that's actually the correct
solution.  I just tried passing in a different value for the parameter
that the error message said was wrong, and PyCapsule_GetName returned
null, so I passed null and it worked.  That's the full extent of the
thought I put into it.  Someone more knowledgeable than me should
figure out why the capsule's name isn't what was expected.

#1074784#10
Date:
2025-02-25 20:34:00 UTC
From:
To:
Hi, I'm experiencing the same bug, but I don't know how to fix it. I
downloaded the cwiid package from github and can't find any calls to
pycapsule_getpointer to make the edit mentioned. What can I do to get
wminput running on my raspberry pi 4 running raspbian? Thx