mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #151] ModuleNotFoundError: No module named 'pyautogui' on Python 3.8.6 #143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aquib-sh on GitHub (Jan 17, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/151
I tried creating exe multiple times, each time after running the output file it gave me
ModuleNotFoundError: No module named 'pyautogui'. It runs perfectly with .py file and I do not have more than 1 version of Python installed. pyautogui is also installed but it seems that it doesn't compile while creating exe using autopytoexe.@Okeke-Divine commented on GitHub (Jan 17, 2021):
It has a problem maybe use pip to install pyinstaller
On Sunday, January 17, 2021, Aquib notifications@github.com wrote:
@aquib-sh commented on GitHub (Jan 17, 2021):
I tried uninstalling pyinstaller and auto-py-to-exe and installed them again. Still didn't work.
@brentvollebregt commented on GitHub (Jan 18, 2021):
@aquib-sh did you read the help post that I wrote up that is linked in the README, in the top of the UI and at the bottom of the UI after packaging a script?
Searching for "ModuleNotFoundError" in this post helped me immediately find the heading "ModuleNotFoundError: No module named x / ImportError: No module named x". I highly recommend giving this a read (that is why I have put it in so many places).
From the post:
Alternatively, if you have put the module in here and the error is still occurring, make sure that the library you're trying to add is installed in the same distribution of Python that auto-py-to-exe is using - I have seen quite a few people get confused by this kind of situation before.
@brentvollebregt commented on GitHub (Jan 19, 2021):
@aquib-sh if you search for "
PyInstaller does not include a pre-compiled bootloader for your platform" in Google, there are a couple of discussions at:In the PyInstaller issue linked above and also hinted in the SO answers, it may be your antivirus removing these. Check that your antivirus is not removing PyInstaller related files.
Original comment replied to (deleted)
@aquib-sh commented on GitHub (Jan 20, 2021):
yes, I found it thats why deleted it
@aquib-sh commented on GitHub (Jan 20, 2021):
I am putting the detailed solution here of how I was able to solve this issue.
After hidden import it gave
Gave Bootloader not precompiled error
steps taken:
cloning the pyinstaller github repo
python setup.py install
cd bootloader
python ./waf all --target-arch=64bit
placed the folder of output to exception in windows antivirus
adding modules to hidden import that had problem:
pyautogui
wave
aifc
pyaudio
THIS SOLVED THE ISSUE, HOPE SOMEONE WILL FIND USEFUL.