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
FileNotFoundError: Could not find module 'C:\Users\yuanpei.lin\AppData\Roaming\Python\Python39\site-packages\pupil_apriltags\lib\apriltag.dll' (or one of its dependencies). Try using the full path with constructor syntax.
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:
File "C:\Users***\AppData\Roaming\Python\Python39\site-packages\pupil_apriltags\bindings.py", line 351, in init
self.tag_detector_ptr = self.libc.apriltag_detector_create()
OSError: exception: access violation writing 0x00000000006338BE
BTW:
I've tried python3.7, it seems work for most others but not me, i got the error msg in python3.7 like:
OSError: [WinError 193] %1 is not valid Win32 application.
Exception ignored in: <function Detector.del at 0x000001A604BDF048>
Traceback (most recent call last):
File "D:\apps\miniconda3\envs\python37\lib\site-packages\pupil_apriltags\bindings.py", line 420, in del
if self.tag_detector_ptr is not None:
AttributeError: 'Detector' object has no attribute 'tag_detector_ptr'
It seems like a x86 error, after that I install python=3.7 with 32bit, sadly none of it works :(
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
then just write the simple test code like:
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
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?