pupil-labs / apriltags

Python bindings for the apriltags3 library
https://pupil-apriltags.readthedocs.io/en/latest/index.html
Other
106 stars 29 forks source link

windows env error, self.tag_detector_ptr = self.libc.apriltag_detector_create() #58

Open TangLeeee opened 1 year ago

TangLeeee commented 1 year ago

python version: 3.9.16/3.7.16 sys: widows11

I've view all the others' issue, unlucky none fix my problem.

firstly, as common install

pip install pupil-apriltags

then just write the simple test code like:

import pupil_apriltags as apriltag
detector = apriltag.Detector()

this get the error msg: Could not find module

after searched and viewed for a long time, I change line:337 in bindings.py to

self.libc = ctypes.CDLL(str(hit), winmode=1)

winmode=0 doesn't work for me, nothing changes still Could not find module, and I found a similar problem menthioned in stackoverflow with win11 so I changed to winmode=1

but then get error msg like this:

BTW: I've tried python3.7, it seems work for most others but not me, i got the error msg in python3.7 like:

It seems like a x86 error, after that I install python=3.7 with 32bit, sadly none of it works :(

now I'm really confused! So anyone can help?