Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug after trying to launch #472

Closed
xstu25 opened this issue Mar 22, 2024 · 3 comments
Closed

Bug after trying to launch #472

xstu25 opened this issue Mar 22, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@xstu25
Copy link

xstu25 commented Mar 22, 2024

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.

@xstu25 xstu25 added the bug Something isn't working label Mar 22, 2024
Copy link

👋 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.

@brentvollebregt
Copy link
Owner

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

brentvollebregt added a commit that referenced this issue Mar 22, 2024
@brentvollebregt
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants