8000 `nvm` module cannot be imported · Issue #7013 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
nvm module cannot be imported #7013
Closed
@jepler

Description

@jepler

CircuitPython version

At least 7.3.3 -- 8.0.0-alpha.1

Code/REPL

>>> import nvm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'nvm'

Behavior

The nvm module exists to hold ByteArray, the type of microcontroller.nvm. However, since at least 7.3.3, this module has not been importable.

We should either remove it (it's largely useless, type(microcontroller.nvm) can be used in place of nvm.ByteArray for most purposes) or fix it by adding at the end of its file:

+MP_REGISTER_MODULE(MP_QSTR_nvm, nvm_module, CIRCUITPY_NVM);

Since nobody's called it out for being missing, I lean towards just dropping it. However, dropping it means that its type can't be mentioned for purposes of static typing.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0