Skip to content

ModeulNotFoundError: No module named 'serial' #8941

Closed Answered by rokm
wilmer-suarez-simplisafe asked this question in Help
Discussion options

You must be logged in to vote

Are you using system python interpreter? I.e., something like subprocess.Popen(['python3', scriptname], ...)?

If so, that system interpreter has no access to python modules that are collected into executable-embedded PYZ archive and are accessible only to embedded interpreter that PyInstaller-frozen application is using. The only reason that system interpreter finds l_tools and l_app is that you are explicitly also collecting them as data files (and those directories end up being next to the manager.py script, whose parent directory ends up being added to search path when the script is launched). You would need to ensure that all dependencies are collected as source .py files.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@rokm
Comment options

rokm Dec 20, 2024
Maintainer

@wilmer-suarez-simplisafe
Comment options

@rokm
Comment options

rokm Dec 20, 2024
Maintainer

@rokm
Comment options

rokm Dec 20, 2024
Maintainer

Answer selected by wilmer-suarez-simplisafe
@wilmer-suarez-simplisafe
Comment options

@wilmer-suarez-simplisafe
Comment options

@rokm
Comment options

rokm Dec 20, 2024
Maintainer

@rokm
Comment options

rokm Dec 20, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants