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

python3.11 crossover #458

Closed
2 tasks done
PingalPie opened this issue Feb 4, 2024 · 3 comments
Closed
2 tasks done

python3.11 crossover #458

PingalPie opened this issue Feb 4, 2024 · 3 comments
Assignees
Labels
question Further information is required

Comments

@PingalPie
Copy link

PingalPie commented Feb 4, 2024

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
@PingalPie PingalPie added the bug Something isn't working label Feb 4, 2024
Copy link

github-actions bot commented 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.

@brentvollebregt
Copy link
Owner

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

@brentvollebregt brentvollebregt added question Further information is required and removed bug Something isn't working labels Feb 5, 2024
@PingalPie
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is required
Projects
None yet
Development

No branches or pull requests

2 participants