marktennyson / flask-mailing

Flask-Mailing is the ultimate solution for sending emails asynchronously in Flask applications. With its extensive features such as support for multiple email providers, file attachments, customizable templates, and encryption, Flask-Mailing makes email communication effortless and efficient.
https://marktennyson.github.io/flask-mailing/
MIT License
33 stars 10 forks source link

Error when running on Python 3.11 #40

Closed rroline closed 1 year ago

rroline commented 2 years ago

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 commented 2 years ago

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

https://github.com/aio-libs/aioredis-py/issues/1409

Master-of-Bytes commented 1 year ago

@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 commented 1 year ago

@rroline @Master-of-Bytes

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

rroline commented 1 year ago

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