[GH-ISSUE #148] my .exe file is not working #141

Closed
opened 2026-02-26 12:20:36 +03:00 by kerem · 4 comments
Owner

Originally created by @ghost on GitHub (Dec 16, 2020).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/148

there was problem in my script.

Originally created by @ghost on GitHub (Dec 16, 2020). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/148 there was problem in my script.
kerem closed this issue 2026-02-26 12:20:36 +03:00
Author
Owner

@ghost commented on GitHub (Dec 16, 2020):

I have created my .exe from auto-py-to-exe but it gives error.
Then i created in onedir mode and it also gives error.
script_VfKRTsstd0
To resolve this i copy cloudscraper folder from other sources to its output/script/ and it works.

But how to do same thing when i create single .exe file instead of one directory.

I have also try the command hidden import.
pyinstaller --noconfirm --onedir --console --hidden-import "cloudscraper" "C:/Users/V/Desktop/GUI/xamhelper.py"
and
pyinstaller --noconfirm --onedir --console --hidden-import "idna" --hidden-import "certifi" --hidden-import "chardet" --hidden-import "urllib3" --hidden-import "requests" --hidden-import "reques ts-toolbelt" --hidden-import "pyparsing" --hidden-import "cloudscraper" "C:/Users/V/Desktop/GUI/xamhelper.py"

<!-- gh-comment-id:745949128 --> @ghost commented on GitHub (Dec 16, 2020): I have created my .exe from auto-py-to-exe but it gives error. Then i created in onedir mode and it also gives error. ![script_VfKRTsstd0](https://user-images.githubusercontent.com/75368279/102325944-c742d180-3fa9-11eb-9f08-0207d5c2036a.png) To resolve this i copy cloudscraper folder from other sources to its output/script/ and it works. **But how to do same thing when i create single .exe file instead of one directory.** I have also try the command hidden import. `pyinstaller --noconfirm --onedir --console --hidden-import "cloudscraper" "C:/Users/V/Desktop/GUI/xamhelper.py"` and `pyinstaller --noconfirm --onedir --console --hidden-import "idna" --hidden-import "certifi" --hidden-import "chardet" --hidden-import "urllib3" --hidden-import "requests" --hidden-import "reques ts-toolbelt" --hidden-import "pyparsing" --hidden-import "cloudscraper" "C:/Users/V/Desktop/GUI/xamhelper.py"`
Author
Owner

@unbeatable-101 commented on GitHub (Dec 16, 2020):

https://stackoverflow.com/a/64586862/14509818
try this

<!-- gh-comment-id:746730474 --> @unbeatable-101 commented on GitHub (Dec 16, 2020): https://stackoverflow.com/a/64586862/14509818 try this
Author
Owner
<!-- gh-comment-id:747086803 --> @AndresQuiVal commented on GitHub (Dec 16, 2020): Give a check on this: https://stackoverflow.com/questions/65046032/error-creating-exe-pyinstaller-with-cloudscraper-module-python/65332172#65332172
Author
Owner

@ghost commented on GitHub (Dec 17, 2020):

https://stackoverflow.com/a/64586862/14509818
try this

This worked.

<!-- gh-comment-id:747196662 --> @ghost commented on GitHub (Dec 17, 2020): > https://stackoverflow.com/a/64586862/14509818 > try this This worked.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#141
No description provided.