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

Error when running on Python 3.11 #40

Closed
rroline opened this issue Sep 21, 2022 · 4 comments
Closed

Error when running on Python 3.11 #40

rroline opened this issue Sep 21, 2022 · 4 comments

Comments

@rroline
Copy link

rroline commented Sep 21, 2022

Getting an error about a duplicate class with one of the modules used in this library.

Sep 21 07:03:38 flaskweb[3047]: from flask_mailing import Mail
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/flask_mailing/init.py", line 88, in
Sep 21 07:03:38 flaskweb[3047]: from . import utils
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/flask_mailing/utils/init.py", line 1, in
Sep 21 07:03:38 flaskweb[3047]: from .email_check import DefaultChecker, WhoIsXmlApi
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/flask_mailing/utils/email_check.py", line 5, in
Sep 21 07:03:38 flaskweb[3047]: import aioredis
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/aioredis/init.py", line 1, in
Sep 21 07:03:38 flaskweb[3047]: from aioredis.client import Redis, StrictRedis
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/aioredis/client.py", line 32, in
Sep 21 07:03:38 flaskweb[3047]: from aioredis.connection import (
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/aioredis/connection.py", line 33, in
Sep 21 07:03:38 flaskweb[3047]: from .exceptions import (
Sep 21 07:03:38 flaskweb[3047]: File "/usr/local/lib/python3.11/dist-packages/aioredis/exceptions.py", line 14, in
Sep 21 07:03:38 flaskweb[3047]: class TimeoutError(asyncio.TimeoutError, builtins.TimeoutError, RedisError):
Sep 21 07:03:38 flaskweb[3047]: TypeError: duplicate base class TimeoutError

@rroline
Copy link
Author

rroline commented Sep 21, 2022

I the modules used need to be switched from aioredis library to redis as it looks like they are no longer supported

aio-libs-abandoned/aioredis-py#1409

@Master-of-Bytes
Copy link

@rroline Any idea when you will patch this so it works with Python 3.11? Currently working on a project and would like to use your library.

@marktennyson
Copy link
Owner

@rroline @Master-of-Bytes

This issue is fixed in the new version. Please check release 0.2.1 for the updated code.

@rroline
Copy link
Author

rroline commented Jan 11, 2023

@rroline @Master-of-Bytes

This issue is fixed in the new version. Please check release 0.2.1 for the updated code.

@marktennyson - Thank you so much! Appreciate the update!

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

No branches or pull requests

3 participants