Python 3.11 through 3.12 Updates#362
Open
Dark-Feather wants to merge 5 commits intobitbot-irc:developfrom
Open
Python 3.11 through 3.12 Updates#362Dark-Feather wants to merge 5 commits intobitbot-irc:developfrom
Dark-Feather wants to merge 5 commits intobitbot-irc:developfrom
Conversation
jeda
reviewed
May 19, 2023
| 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.
This didn't work on my setup. The other changes helped it work on Python 3.11; but _abc was undefined, while abc worked.
Author
There was a problem hiding this comment.
@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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Author
|
@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. |
Author
|
New update pushed for requirements.txt to get it working on 3.12. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.