不是 mach-o 文件

Kid*_*aro 5 python dll ctypes

我的代码似乎无法找到我创建的特定文件。该文件与名为的文件.so位于同一文件夹中我收到以下错误:.pysuper_real_time_massive.so.

OSError: dlopen(/Users/sebastianvolkl/Desktop/Ildaron_EEGwithRaspberryPI_master_GUI/super_real_time_massive.so, 0x0006): tried: 
'/Users/sebastianvolkl/Desktop/Ildaron_EEGwithRaspberryPI_master_GUI/super_real_time_massive.so' 
(not a mach-o file), '/usr/lib/super_real_time_massive.so' (no such file)
Run Code Online (Sandbox Code Playgroud)

这是我尝试运行的代码的一部分:

np.set_printoptions(threshold=sys.maxsize)
libc = ctypes.CDLL("/Users/sebastianvolkl/Desktop/Ildaron_EEGwithRaspberryPI_master_GUI/super_real_time_massive.so")
libc.prepare()
Run Code Online (Sandbox Code Playgroud)

这里可以看到该文件在文件夹中

sebastianvolkl@bastimacbook Ildaron_EEGwithRaspberryPI_master_GUI % ls
Makefile            real_time_massive.c
ReadMe.txt          real_time_massive.h
libperiphery.a          real_time_without_thread.py
real_time.py            super_real_time_massive.so
Run Code Online (Sandbox Code Playgroud)