Skip to content

Make it callable from the source code #45

@ygoe

Description

@ygoe

I'm not a Python expert by far. I know the basic syntax and can find my way around and make a few changes. And I can't get this script to run on the command line on Windows.

My Python version is 3.11.4. I have already installed the dependencies (by extracting the info I understood from setup.cfg to a requirements.txt file). But how am I supposed to run this? When I do a little guessing and run python pymcuprog.py from the "pymcuprog" directory, I get this:

Traceback (most recent call last):
  File "C:\Source\Elektronik\pymcuprog\pymcuprog\pymcuprog.py", line 25, in <module>
    from . import pymcuprog_main
ImportError: attempted relative import with no known parent package

I don't know what's going on here. pyupdi has worked just fine like that. Is there some additional start or entry script missing in the code?

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