-
Notifications
You must be signed in to change notification settings - Fork 52
Python 3.11 through 3.12 Updates #362
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
base: develop
Are you sure you want to change the base?
Conversation
| module = importlib.util.module_from_spec(import_spec) | ||
| sys.modules[import_name] = module | ||
| loader = typing.cast(importlib.abc.Loader, import_spec.loader) | ||
| loader = typing.cast(importlib._abc.Loader, import_spec.loader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This didn't work on my setup. The other changes helped it work on Python 3.11; but _abc was undefined, while abc worked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeDaYoshi -- what is your full release string? I have Python 3.11.3 as the output of python3 --version. Python merged the _abc update for Python a couple years ago -- you'll see the PR in the 22ed4dd commit message.
Bumps [requests](https://github.com/psf/requests) from 2.22.0 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.22.0...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
@poVoq have you been able to use this branch on 3.11? |
Sorry I have not tried anything other than the main develop branch, which currently does not work with Python3.11. |
|
New update pushed for requirements.txt to get it working on 3.12. |
Some changes in Python 3.11 break the bot as written. These two commits should solve it -- I'm testing this branch on my network now.