[GH-ISSUE #458] python3.11 crossover #362

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

Originally created by @PingalPie on GitHub (Feb 4, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/458

Originally assigned to: @PingalPie on GitHub.

Quick Checks

Describe the bug

autopytoexe does not work in python3.11 as autopytoexe imports getargspec from inspect module which was removed in python3.11

To Reproduce

  1. Install python3.11
  2. Run auto-py-to-exe from cli
auto-py-to-exe

Error:

Traceback (most recent call last):
  File "$HOME/.local/bin/auto-py-to-exe", line 5, in <module>
    from auto_py_to_exe.__main__ import run
  File "$HOME/.local/lib/python3.11/site-packages/auto_py_to_exe/__main__.py", line 13, in <module>
    from . import ui
  File "$HOME/.local/lib/python3.11/site-packages/auto_py_to_exe/ui.py", line 6, in <module>
    import eel
  File "$HOME/.local/lib/python3.11/site-packages/eel/__init__.py", line 15, in <module>
    import bottle as btl
  File "/usr/lib/python3/dist-packages/bottle.py", line 44, in <module>
    from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib/python3.11/inspect.py)

Expected behavior

Run perfectly fine

Your Environment:

  • Python version (python --version): 3.11.5
  • auto-py-to-exe version (pip show auto-py-to-exe): 2.42.0
  • PyInstaller version (pip show pyinstaller): 6.3.0
  • Eel version (pip show eel): 0.16.0
Originally created by @PingalPie on GitHub (Feb 4, 2024). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/458 Originally assigned to: @PingalPie on GitHub. **Quick Checks** - [x] I have read the [help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe) - [x] I have [searched other issues](https://github.com/brentvollebregt/auto-py-to-exe/issues?q=is%3Aissue+), looking for an issue similar to mine **Describe the bug** autopytoexe does not work in python3.11 as autopytoexe imports `getargspec` from `inspect` module which was removed in python3.11 **To Reproduce** 1. Install python3.11 2. Run auto-py-to-exe from cli ```bash auto-py-to-exe ``` Error: ``` Traceback (most recent call last): File "$HOME/.local/bin/auto-py-to-exe", line 5, in <module> from auto_py_to_exe.__main__ import run File "$HOME/.local/lib/python3.11/site-packages/auto_py_to_exe/__main__.py", line 13, in <module> from . import ui File "$HOME/.local/lib/python3.11/site-packages/auto_py_to_exe/ui.py", line 6, in <module> import eel File "$HOME/.local/lib/python3.11/site-packages/eel/__init__.py", line 15, in <module> import bottle as btl File "/usr/lib/python3/dist-packages/bottle.py", line 44, in <module> from inspect import getargspec ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib/python3.11/inspect.py) ``` **Expected behavior** Run perfectly fine **Your Environment:** - Python version (`python --version`): 3.11.5 - auto-py-to-exe version (`pip show auto-py-to-exe`): 2.42.0 - PyInstaller version (`pip show pyinstaller`): 6.3.0 - Eel version (`pip show eel`): 0.16.0
kerem 2026-02-26 12:21:21 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 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:1925612512 --> @github-actions[bot] commented on GitHub (Feb 4, 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 (Feb 4, 2024):

What version of bottle do you have installed? I recommend trying 0.12.25.

<!-- gh-comment-id:1925657886 --> @brentvollebregt commented on GitHub (Feb 4, 2024): What version of `bottle` do you have installed? I recommend trying 0.12.25.
Author
Owner

@PingalPie commented on GitHub (Feb 5, 2024):

I was using bottle: 0.12.15
after updating bottle to 0.12.25
it was solved and worked perfectly fine

<!-- gh-comment-id:1926930386 --> @PingalPie commented on GitHub (Feb 5, 2024): I was using bottle: 0.12.15 after updating bottle to 0.12.25 it was solved and worked perfectly fine
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#362
No description provided.