Skip to content

Building micropython master fails if pypi / mpy_cross package is installed. #9255

@andrewleech

Description

@andrewleech

With the merge of #8914 there's now a dependency on import mpy_cross to build micropython.

If a user already has my python mpy_cross package installed however it gets picked up instead, throwing the error during make:

Traceback (most recent call last):
  File "../../tools/makemanifest.py", line 197, in main
    mpy_cross.compile(
AttributeError: module 'mpy_cross' has no attribute 'compile'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../../tools/makemanifest.py", line 264, in <module>
    main()
  File "../../tools/makemanifest.py", line 205, in main
    except mpy_cross.CrossCompileError as ex:
AttributeError: module 'mpy_cross' has no attribute 'CrossCompileError'

The fix currently is to pip uninstall mpy_cross but we should look at publishing the new mpy_cross package / wrapper to pypi directly from here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions