MetaWear-SDK-Python
MetaWear-SDK-Python copied to clipboard
Python MetaWear Error : name 'kwarg' is not defined.
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.
https://github.com/mbientlab/MetaWear-SDK-Python/blob/84baa9643adcb50a302d715cc7e7c841016fb281/mbientlab/metawear/init.py#L75
I'm not very used to Github so I don't know how to propose a commit to fix that issue...