Skip to content
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

Python MetaWear Error : name 'kwarg' is not defined. #33

Open
Elbarto opened this issue Aug 28, 2023 · 0 comments
Open

Python MetaWear Error : name 'kwarg' is not defined. #33

Elbarto opened this issue Aug 28, 2023 · 0 comments

Comments

@Elbarto
Copy link

Elbarto commented Aug 28, 2023

Hi,

While trying to use the python api to log data from a Metawear sensor I ran into the following issue :

File "_ctypes/callbacks.c", line 232, in 'calling callback function' File "...\Python\Python37\lib\site-packages\mbientlab\metawear\__init__.py", line 75, in handler result[0] = RuntimeError("Could not create " + (kwargs['resource'] if 'resource' in kwarg else "resource") ) if pointer == None else pointer NameError: name 'kwarg' is not defined

And indeed there is a typo mistake in this file at line 75.

result[0] = RuntimeError("Could not create " + (kwargs['resource'] if 'resource' in kwarg else "resource") ) if pointer == None else pointer

I'm not very used to Github so I don't know how to propose a commit to fix that issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant