brentvollebregt / auto-py-to-exe

Converts .py to .exe using a simple graphical interface
MIT License
3.95k stars 677 forks source link

Bug after trying to launch #472

Closed xstu25 closed 6 months ago

xstu25 commented 6 months ago

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.

github-actions[bot] commented 6 months ago

👋 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 commented 6 months ago

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

brentvollebregt commented 6 months ago

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!