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 Updates #362

Open
wants to merge 3 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.

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

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.

None yet

3 participants