ModuleNotFoundError: No module named 'bleak' #8395
-
Hi, I am trying to create exe, but the pyinstaller won't include the bleak library in the build. I installed the pyinstaller through pip: pip install pyinstaller Debug Info:Traceback:... I also wrote a minimal example program and it worked. What did I do wrong? Thanks for the help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You need to install and run PyInstaller in the same environment as your packages. |
Beta Was this translation helpful? Give feedback.
-
Hi, I added now the pyinstaller to my virtual environment:
And created the .exe like this:
However, when I execute the exe. It seems like it is trying to load modules/library in the memory, but it can not load the libraries and then it is just restarting again. It is just printing a lot of output text, but not doing anything. I would expect the GUI to at least start, but it does not. I have included the log output in the exe.log file. If I look in the folder build/test1/xref-test1.html then it complaints that certain modules are not imported:
Should I import them somehow or tell pyinstaller where to find them? |
Beta Was this translation helpful? Give feedback.
-
Thank you both. The executable is now working. |
Beta Was this translation helpful? Give feedback.
Your program seems to be "restarting" because it is using
multiprocessing
and is trying to spawn themultiprocessing
resource tracker: