Skip to content

Error when running example code #1

@martinakos

Description

@martinakos

First of all, thanks for this library!

I installed it following your instructions and it seems it installed correctly.
However, when I run your example code I get this error:

TypeError: unbound method get_installed_count() must be called with Device instance as first argument (got nothing instead)

when running the line

print(pyk4a.Device.get_installed_count())

and similar error:

TypeError: unbound method open() must be called with Device instance as first argument (got int instance instead)

when running:

device=pyk4a.Device.open(pyk4a.K4A_DEVICE_DEFAULT)

Do you know what could be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions