NiklasRosenstein / myo-python

Python bindings for the Myo SDK
Other
259 stars 102 forks source link

error 0x7e. cannot load library #84

Open ryunosuke0723 opened 4 years ago

ryunosuke0723 commented 4 years ago

I was trying to load myo64.dill to connect python to myo armband. But, the error happend. 「cannot load library 'C:\path\to\myo-sdk\bin\myo64.dll': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'C:\\path\\to\\myo-sdk\\bin\myo64.dll'」 Does someone know how can I fix this? please.

NiklasRosenstein commented 4 years ago

Does the file C:\path\to\myo-sdk\bin\myo64.dll actually exist?

CheerMan1 commented 1 year ago

I was trying to load myo64.dill to connect python to myo armband. But, the error happend. 「cannot load library 'C:\path\to\myo-sdk\bin\myo64.dll': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'C:\path\to\myo-sdk\bin\myo64.dll'」 Does someone know how can I fix this? please.

I have the same problem and i am sure the file exist. these are my errors:

2023-01-30 14:28:27,145 - device.myo_listener - ERROR - cannot load library 'D:/myo/stark-demo/MyoFeaturePlotter/dll/myo64.dll': error 0xc1 Traceback (most recent call last): File "D:\myo\stark-demo\MyoFeaturePlotter\device\myo_listener.py", line 49, in run myo.init(self.dll) File "D:\Envs\myo-python\lib\site-packages\myo_ffi.py", line 238, in init libmyo = ffi.dlopen(lib_name) File "D:\Envs\myo-python\lib\site-packages\cffi\api.py", line 150, in dlopen lib, function_cache = _make_ffi_library(self, name, flags) File "D:\Envs\myo-python\lib\site-packages\cffi\api.py", line 832, in _make_ffi_library backendlib = _load_backend_lib(backend, libname, flags) File "D:\Envs\myo-python\lib\site-packages\cffi\api.py", line 828, in _load_backend_lib return backend.load_library(path, flags) OSError: cannot load library 'D:/myo/stark-demo/MyoFeaturePlotter/dll/myo64.dll': error 0xc1

Dooganar commented 1 year ago

I have the same issue.

crasgaitis commented 11 months ago

Is there somewhere where we can manually download the dll file? I don't see it in the SDK.

Dooganar commented 11 months ago

My solution was to use Python 3.7.4. I tried using python 3.11 and got these sorts of errors.

NiklasRosenstein commented 11 months ago

Is there somewhere where we can manually download the dll file? I don't see it in the SDK.

You can find the last available binaries provided by ThalmicLabs in the Github release: https://github.com/NiklasRosenstein/myo-python/releases/tag/v1.0.4