8000 mpy-tool.py is not Python 2.x compliant · Issue #1983 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
mpy-tool.py is not Python 2.x compliant #1983
Closed
@peterhinch

Description

@peterhinch

A build using persistent bytecode fails with

CC build-PYBV10/pins_PYBV10.c
MPY scripts/fonts.py
Creating build-PYBV10/scripts/frozen_mpy.c
  File "../tools/mpy-tool.py", line 234
    print('   ', end='')
                    ^
SyntaxError: invalid syntax
make: *** [build-PYBV10/scripts/frozen_mpy.c] Error 1
make: *** Deleting file `build-PYBV10/scripts/frozen_mpy.c'
[adminpete@axolotl]: /mnt/qnap2/data/Projects/MicroPython/micropython/stmhal

This can be fixed by mandating Python3 in py/mkenv.mk but then make deploy fails unless I reinstate Python2. This is because (as I understand it) the usb.core module supports only P2.

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

      0