Python 3.7.5
PyInstaller 5.13.2
On Thursday, August 8, 2024 at 3:34:50 PM UTC+8 Yang Chen wrote:
> My Python script works just fine, but got error when running exe generated
> by pyinstaller.
>
> This is the source code:
>
> import ctypes
> XReal = ctypes.CDLL('AirAPI_Windows.dll')
> ret = XReal.StartConnection()
> XReal.DGetEuler.argtypes = [ctypes.POINTER(ctypes.c_float)]
> euler_arr = (ctypes.c_float * 3)()
> ptr = ctypes.cast(euler_arr, ctypes.POINTER(ctypes.c_float))
> for ix in range(200):
> XReal.DGetEuler(ptr)
>
> AirAPI_Windows.dll is built from GitHub - MSmithDev/AirAPI_Windows
> <https://github.com/MSmithDev/AirAPI_Windows/tree/master>
>
> Any suggestions?
>
> Thanks in advance.
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/0e49986c-bdd9-4b01-9e69-db04b42a1737n%40googlegroups.com.