-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expected LockingPolicy #60
Comments
Hi Lycos2, I can not reproduce it here. Could you help me debug this please? In the @locking_policy.setter
def locking_policy(self, policy):
print('@@@', repr(policy), type(policy), type(policy).__module__, LockingPolicy.__module__, type(policy) is LockingPolicy)
if not isinstance(policy, LockingPolicy):
raise TypeError('expected LockingPolicy')
error = ErrorDetails()
libmyo.libmyo_set_locking_policy(self._handle[0], int(policy), error.handle)
error.raise_for_kind() After that, run your Python script again and please paste the output in the console. Please put any terminal output in code blocks like so:
|
Hi Niklas,
|
Hm that is weird. Something seems to be wrong with the enumeration types. Can you tell me the exact version of Python you are using and the version of the
|
(base) C:\Users\ELYES>python --version (base) C:\Users\ELYES>python -c "import nr; print(nr.version)" |
How did you install We require
should fix your problem. |
hi Niklas, File "", line 1, in File "C:\Users\ELYES\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 706, in runfile File "C:\Users\ELYES\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 103, in execfile File "C:/Users/ELYES/Anaconda3/my_project/myo-python-master (1)/myo-python-master/01_hello_myo.py", line 28, in File "C:\Users\ELYES\Anaconda3\my_project\myo-python-master (1)\myo-python-master\myo_init_.py", line 26, in File "C:\Users\ELYES\Anaconda3\my_project\myo-python-master (1)\myo-python-master\myo_ffi.py", line 72, in AttributeError: module 'nr' has no attribute 'enum' |
Uhm and what happens if you type |
I did that and it seems ok!! (base) C:\Users\ELYES>python
""""" |
Could you come over to https://gitter.im/NiklasRosenstein/myo-python? I have some more questions regarding your environment. |
hello,
I'm a biginner in programming, i'm working on a project with myo to use it with people with Parkinson disease, a month earlier I used the myo master SDK to assure the connection and it worked but now the same script won't work (I didn't change anything) can you help me please to solve this issue :
runfile('C:/Users/ELYES/Desktop/myo_test/myo-python-master/01_hello_myo.py', wdir='C:/Users/ELYES/Desktop/myo_test/myo-python-master')
[autoreload of sitecustomize failed:
The text was updated successfully, but these errors were encountered: