Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

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

@Elbarto

Description

@Elbarto

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions