Skip to content

mpy-tool.py is not Python 2.x compliant #1983

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy