Git Product home page Git Product logo

Comments (10)

sgzsh269 avatar sgzsh269 commented on August 15, 2024

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.

sgzsh269 avatar sgzsh269 commented on August 15, 2024

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.

juharris avatar juharris commented on August 15, 2024

Thanks @iawffe, yes this is the right place to report issues. Can you share the entire stacktrace with us?

from myo-python.

iawffe avatar iawffe commented on August 15, 2024

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.

iawffe avatar iawffe commented on August 15, 2024

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.

juharris avatar juharris commented on August 15, 2024

Sure try with the absolute path and let us know.

from myo-python.

iawffe avatar iawffe commented on August 15, 2024

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.

iawffe avatar iawffe commented on August 15, 2024

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.

juharris avatar juharris commented on August 15, 2024

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.

juharris avatar juharris commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.