Skip to content

Compile Issue with Error Message #1

@SaraJo

Description

@SaraJo

When a sketch is uploaded, an error message occurs that is not an actual error. This is confusing for the user. The message is

Failed to execute script __main__

Explanation from @davison-sm here:

The tool is here: https://github.com/NordicSemiconductor/pc-nrfutil

There are multiple branches with different versions. Master is the updated tool for SDK 12 and will not work for us as we haven't upgraded to 12 yet. The branch that will work for us is "0_5_2".

The code works fine when installed normally in the system using "python setup.py install". This nrfutil tool runs perfectly and doesn't give the error message. But it is installed on the system using links, so the executable can't be distributed on our github.

The standard method of making a distributable executable would be "pyinstaller --onefile setup.py". The installer builds correctly, but gives an error about a broken import module command when it is run.

To make the executable that we are using now, run pyinstaller on the main.py file in the nordicsemi folder. This executable runs but has the annoying error message.

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