[GH-ISSUE #472] Bug after trying to launch #370

Closed
opened 2026-02-26 12:21:23 +03:00 by kerem · 3 comments
Owner

Originally created by @xstu25 on GitHub (Mar 22, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/472

Originally assigned to: @brentvollebregt on GitHub.

Hi.

I have a problem when I launch the app.

 File "D:\Program Files\Python\Lib\site-packages\auto_py_to_exe\utils.py", line 10, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

You wrote :

"ModuleNotFoundError: No module named x / ImportError: No module named x
This means a particular module ('x' in this case) was not added to the package. I have seen this occur with packages in the pandas library and win32api; as long as you can identify the package (e.g. 'x'), then it is very easy to fix.

To fix this in the UI, open the advanced tab and find the --hidden-import input. Simply paste the module name into this input and then repackage. If the original error is still appearing, you have done this incorrectly.


For example, if you are missing pandas._libs.tslib, add 'pandas._libs.tslib' into the input by --hidden-import. Additionally, you can add more than one module, for example, pandas._libs.tslib, win32api. (See the question mark by the input for more information)."

I'm noob, and don't you know what to do with your help !

Thanks for reply and thanks for support.

Originally created by @xstu25 on GitHub (Mar 22, 2024). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/472 Originally assigned to: @brentvollebregt on GitHub. Hi. I have a problem when I launch the app. ``` File "D:\Program Files\Python\Lib\site-packages\auto_py_to_exe\utils.py", line 10, in <module> import requests ModuleNotFoundError: No module named 'requests' ``` You wrote : ``` "ModuleNotFoundError: No module named x / ImportError: No module named x This means a particular module ('x' in this case) was not added to the package. I have seen this occur with packages in the pandas library and win32api; as long as you can identify the package (e.g. 'x'), then it is very easy to fix. To fix this in the UI, open the advanced tab and find the --hidden-import input. Simply paste the module name into this input and then repackage. If the original error is still appearing, you have done this incorrectly. For example, if you are missing pandas._libs.tslib, add 'pandas._libs.tslib' into the input by --hidden-import. Additionally, you can add more than one module, for example, pandas._libs.tslib, win32api. (See the question mark by the input for more information)." ``` I'm noob, and don't you know what to do with your help ! Thanks for reply and thanks for support.
kerem 2026-02-26 12:21:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Mar 22, 2024):

👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.

Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.

<!-- gh-comment-id:2015653720 --> @github-actions[bot] commented on GitHub (Mar 22, 2024): 👋 Hi, just a reminder that if you haven't read [the help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/) yet, give it a read to see if your issue is covered in it and make sure to follow [the debugging section](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#debugging). Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help [post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/), [video](https://youtu.be/OZSZHmWSOeM) or create a [new discussion](https://github.com/brentvollebregt/auto-py-to-exe/discussions).
Author
Owner

@brentvollebregt commented on GitHub (Mar 22, 2024):

Thanks for raising this, looks like we missed requests in setup.py from #469 - will put out a new release now

<!-- gh-comment-id:2015826253 --> @brentvollebregt commented on GitHub (Mar 22, 2024): Thanks for raising this, looks like we missed `requests` in `setup.py` from #469 - will put out a new release now
Author
Owner

@brentvollebregt commented on GitHub (Mar 22, 2024):

This should be fixed in auto-py-to-exe 2.43.1 - you can use python -m pip install auto-py-to-exe --upgrade to upgrade auto-py-to-exe.

Again, thank you very much for raising this!

<!-- gh-comment-id:2015839455 --> @brentvollebregt commented on GitHub (Mar 22, 2024): This should be fixed in [auto-py-to-exe 2.43.1](https://github.com/brentvollebregt/auto-py-to-exe/releases/tag/v2.43.1) - you can use `python -m pip install auto-py-to-exe --upgrade` to upgrade auto-py-to-exe. Again, thank you very much for raising this!
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#370
No description provided.