Comments (10)
It could be version dependent. The DYLD_LIBRARY_PATH solution works fine with 0.8.0. Haven't gotten a chance to try 0.8.1
from myo-python.
I just tried it with 0.8.1 as well. It works fine. Could you double check that the DYLD_LIBRARY_PATH holds the correct path (maybe there is a typo somewhere) to myo.framework?
from myo-python.
Thanks @iawffe, yes this is the right place to report issues. Can you share the entire stacktrace with us?
from myo-python.
Hi Juharris, when you say stacktrace do you mean the following message?
runfile('/Users/iawffe/Documents/Myo/myo-python/examples/hello1.py', wdir='/Users/iawffe/Documents/Myo/myo-python/examples')
Using Python 2
Error loading "myo". Make sure that it is in your path.
Traceback (most recent call last):
File "", line 1, in
runfile('/Users/iawffe/Documents/Myo/myo-python/examples/hello1.py', wdir='/Users/iawffe/Documents/Myo/myo-python/examples')
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/sitecustomize.py", line 586, in runfile
execfile(filename, namespace)
File "/Users/iawffe/Documents/Myo/myo-python/examples/hello1.py", line 15, in
myo.init()
File "/Users/iawffe/Documents/Myo/myo-python/myo/lowlevel.py", line 125, in init
lib = ctypes.cdll.LoadLibrary(lib_name)
File "ctypes/init.pyc", line 443, in LoadLibrary
File "ctypes/init.pyc", line 365, in init
OSError: dlopen(myo, 6): image not found
myo.init()
Error loading "myo". Make sure that it is in your path.
Traceback (most recent call last):
File "", line 1, in
myo.init()
File "/Users/iawffe/Documents/Myo/myo-python/myo/lowlevel.py", line 125, in init
lib = ctypes.cdll.LoadLibrary(lib_name)
File "ctypes/init.pyc", line 443, in LoadLibrary
File "ctypes/init.pyc", line 365, in init
OSError: dlopen(myo, 6): image not found
from myo-python.
Hi sgzsh269,
I don't see any typo in the Path I gave to DYLD_LIBRARY_PATH
Unless I need to give the absolute path instead of starting with /LIBRARY???
Sorry I am really new to Mac so I don't know much.
from myo-python.
Sure try with the absolute path and let us know.
from myo-python.
I tried
export DYLD_LIBRARY_PATH=/Users/iawffe/Library/Myo_SDK/myo.framework
and
export DYLD_LIBRARY_PATH=/Users/iawffe/Library/Myo_SDK/
Both don't seem to work, throwing the same error. (*I open Terminal and key in the command, then I run the python script. I didn't close the Terminal, I don't think it would make any differences)
from myo-python.
Ok, I found something. If I did everything in the Terminal window it works.
e.g., Set DYLD_LIBRARY_PATH, navigate to the myo-python folder, run the script by typing python hello.py
The error I saw was in an IDE (spyder). I think there is something else I need to setup.
from myo-python.
Oh. You would need to permanently set your up your path
or DYLD_LIBRARY_PATH and the re-open your IDE. Usually IDE's only get the
path the first time they open.
from myo-python.
Feel free to continue the discussion here but I'm going to close this issue since it works in your Terminal. It also works in my IDE (Eclipse + PyDev).
from myo-python.
Related Issues (20)
- Error in on_pose() when myo is unsynced HOT 2
- UTC timestamps for myo data? HOT 1
- ResultError: (<Result.error_runtime: 3>, b'Unable to connect to Myo Connect. Is Myo Connect running?') HOT 1
- OSError: [Errno 0] Error: 'myo\\libmyo.h'
- Myo SDK Download HOT 1
- Running in macOS: did not manage to locate a library called 'myo' HOT 1
- How to use the vibration method? HOT 1
- Get Myo data in the time HOT 3
- error 0x7e. cannot load library HOT 6
- 'Hub' object has no attribute 'shutdown' HOT 1
- SDK HOT 1
- myo sdk HOT 1
- Do You Have An Archive of The Windows 10 SDK? HOT 1
- live EMG HOT 2
- 03_live_EMG HOT 9
- AttributeError: module 'time' has no attribute 'clock' in myo/utils.py HOT 1
- What unit is the data in? millivolts or volts? HOT 4
- unable to download the Myo-SDK HOT 1
- Error loading library HOT 1
- Data streaming keeps buffering at around 15 seconds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myo-python.