Skip to content

import failing - cannot perform relative import #51

Closed
@codingbandit

Description

@codingbandit

I am attempting to use this library from the CircuitPython library download, version 6, but as soon as I include the import (as shown in the examples), I am receiving an error "cannot perform relative import". Line 48 of adafruit_minimqtt.py is relatively loading the matcher.

I ultimately would like to use this library with the Adafruit Azure IoT library, but it can't find the module (even though it's copied to lib) - the import in the IoT lib doesn't match the minimqtt examples.

I'm not familiar enough with the CircuitPython build tools for building bundles, one day I will attempt this myself - but this issue is a bit more pressing at the moment as I wish to include it in a presentation - any assistance is appreciated. Please let me know if you need anything additional, or if I totally missed the boat on something easy :)

image

Metadata

Metadata

Assignees

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