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

Python 3.11 through 3.12 Updates #362

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Dark-Feather
Copy link

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.

@Dark-Feather Dark-Feather changed the base branch from master to develop May 8, 2023 21:26
@@ -235,7 +235,7 @@ def _load_module(self, bot: "IRCBot.Bot", definition: ModuleDefinition,
definition.filename)
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)
Copy link
Contributor

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.

Copy link
Author

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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@Dark-Feather
Copy link
Author

@poVoq have you been able to use this branch on 3.11?

@poVoq
Copy link

poVoq commented Jun 2, 2023

@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.

@Dark-Feather
Copy link
Author

New update pushed for requirements.txt to get it working on 3.12.

@Dark-Feather Dark-Feather changed the title Python 3.11 Updates Python 3.11 through 3.12 Updates Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants