Skip to content

the json library in python-stdlib requires some constants in re module which is not available in the embeded re module of micropython #742

@versaloon

Description

@versaloon
/ # mpy
MicroPython v1.20.0-348-g24a6e951e-dirty on 2023-08-13; linux [] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import mip
>>> mip.install('json')
Installing json (latest) from https://micropython.org/pi/v2 to /usr/micropython/lib
Copying: /usr/micropython/lib/json/__init__.mpy
Copying: /usr/micropython/lib/json/encoder.mpy
Copying: /usr/micropython/lib/json/scanner.mpy
Copying: /usr/micropython/lib/json/tool.mpy
Copying: /usr/micropython/lib/json/decoder.mpy
Done
>>> import json
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "json/__init__.py", line 114, in <module>
  File "json/decoder.py", line 6, in <module>
  File "json/scanner.py", line 13, in <module>
AttributeError: 'module' object has no attribute 'VERBOSE

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