pymcuprog
pymcuprog copied to clipboard
Make it callable from the source code
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?