-
Notifications
You must be signed in to change notification settings - Fork 680
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
Python 3.12.0 ModuleNotFoundError: No module named 'bottle.ext.websocket' #433
Comments
👋 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. |
Could you try the following
Do you get the same issue? With you clearing the issue template out, I can't offer much more than this immediately 😕 |
Same problem here. Also on python 3.12. |
It works in virtual environment. But it doesn't work outside of it. Any remedy? |
just ran into the same issue. Also, not too sure how to run it in a venv 🥲 |
This shows that the issue is the packages installed in your environment. To fix this, run one of the following:
Update: these solutions will not work! |
has the issue stemmed from upgrading to Python 3.12.0? |
That's a good thought! Even though @neelkalpa didn't say what Python version they were using, I think I can assume 3.12 judging by the paths. I imagine the virtual environment was the same version. I just added Python 3.12 to the tests in this repo and they seemed to run fine - so it looks like an upgrade to 3.12 should be ok. |
Have tried this and this has not fixed the issue, this issue is persistent with Python 3.12.0 when running auto-py-to-exe from the command prompt (CMD) |
I tried the same and failed... i uploaded a pastebin of my terminal which may/may not help 🤞 |
Thank you, I have been able to reproduce this now,
I get the same as above,
This looks like an Eel issue, executing Interestingly, looking at how |
bottle's last release was on March 5, 2023 with version 0.12.25. Since then, there have been a few changes put on master, but no release has been made to push these changes to PyPI. I just tried the bottle.py on master in my local setup and it worked fine. So it looks like the code is available, it just hasn't been pushed to PyPI. Update: The "there have been a few changes put on master" link doesn't give much insight as the master branch and release branch in bottles repo don't hold the same changes. |
Cleared PIP cache and tried |
Need to get #433 sorted before we can say Python 3.12 is supported
Yep, my bad, |
thanks for looking into this 👍 |
The commit we need was put on master back on June 13, 2022 but it appears that releases are not directly done master, but instead in their own release branch - so that explains how the commit was made so long ago but is not in the recent release. |
I've created an issue at bottlepy/bottle#1430 to let bottle know |
Hi, thanks for creating the issue! For everyone else encountering the problem, quick fix I've found using the information raised by @brentvollebregt: Navigate to |
I have a temporary solution in #434 - this seems to work ok for me. Could someone else that's having this issue try this out and let me know if it works for you? If so, I'll merge it in and create a release. |
My apologies, somehow the .py file got messed up while downloading. Had to go to the github address and download it in raw format. |
This quick fix worked. |
This should now be fixed in auto-py-to-exe 2.41.0 with the shim added in #434. I'll close this for now, but if you are still facing this issue please comment here and provide the following:
Hopefully bottle fixes this soon and we can remove the shim. |
Just FYI, if you use |
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Python312\Lib\site-packages\auto_py_to_exe_main.py", line 10, in
from . import ui
File "C:\Program Files\Python312\Lib\site-packages\auto_py_to_exe\ui.py", line 6, in
import eel
File "C:\Program Files\Python312\Lib\site-packages\eel_init.py", line 16, in
import bottle.ext.websocket as wbs
ModuleNotFoundError: No module named 'bottle.ext.websocket'
Tried solving like this:
pip install bottle-websocket
pip install eel
However, it didn't work!
The text was updated successfully, but these errors were encountered: