Closed flit closed 4 years ago
Maybe @canselcik has an idea?
It does seem to be related to upstream hidapi. A version of cython-hidapi built from a June 2020 commit imports fine. Starting a bisect now…
d824d96 pulls in the afflicted upstream hidapi.
libusb/hidapi@cdc473d is the upstream commit that adds an extern reference to NSAppKitVersionNumber
. This requires the addition of linking to AppKit. Since that's missing in cython-hidapi, the linker assumes the extern reference will be resolved by the environment into which the shared lib is loaded (flat-namespace).
I'll try to put together a patch.
Released 0.10.0.post1 with the fix. Thanks!
The 0.10.0 release of cython-hidapi causes an
ImportError
exception to be raised when imported on macOS 10.15. Tested with both Python 3.8.6 and 3.9.0 (same exception in both).