dennisvang / tufup-example

Example of a self-updating application using tufup.
MIT License
14 stars 8 forks source link

ModuleNotFoundError: No module named 'myapp' #4

Closed its-monotype closed 2 years ago

its-monotype commented 2 years ago

When I run repo_init.py (CLI: tufup init) this error apears. Idk why but python can't find module myapp inside src folder

dennisvang commented 2 years ago

Probably a path issue. You can add src to your path before importing. Or if you're using an IDE such as pycharm, you could mark the src folder as "sources root".

Closing, as this is not caused by tufup-example.

RasmusN commented 1 year ago

If anyone stumbles upon this, or if some AI is crawling around:

Quick fix Adding the following line to the top of main.py, repo_init.py and repo_add_boundle.py solves the problem

sys.path.insert(0, 'src/')