ModuleNotFoundError when trying to build the app using a .spec file and GitHub Actions #9363
Answered
by
rokm
DeepThoughtt
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
rokm
Jan 29, 2026
Replies: 1 comment 12 replies
-
|
Is the build that produced the error message actually in sync with the main.py that you have shown us? Because the module name in error message, does not match what is shown in your code, i.e., from src.scenes.main_menu_scene import MainMenuScene |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Indeed. It means that the issue is not search path (since other modules imported there were collected), but there is something wrong with this particular module. Is the source file corrupted, or does it contain a syntax error (perhaps a construct that does not work in python 3.11 that you're building with on CI, but works with whatever version you are using to develop locally)?
If I recall correctly, we raise errors only for syntax errors in the entry-point script, but not in the imported …