-
Notifications
You must be signed in to change notification settings - Fork 66
Python 3.10 Incompatibility #102
Copy link
Copy link
Open
Labels
Milestone
Description
Traceback (most recent call last):
File "/app/consumer.py", line 17, in <module>
import ksql
File "/usr/local/lib/python3.10/site-packages/ksql/__init__.py", line 6, in <module>
from ksql.client import KSQLAPI # noqa
File "/usr/local/lib/python3.10/site-packages/ksql/client.py", line 4, in <module>
from ksql.api import SimplifiedAPI
File "/usr/local/lib/python3.10/site-packages/ksql/api.py", line 12, in <module>
from hyper import HTTPConnection
File "/usr/local/lib/python3.10/site-packages/hyper/__init__.py", line 11, in <module>
from .common.connection import HTTPConnection
File "/usr/local/lib/python3.10/site-packages/hyper/common/connection.py", line 9, in <module>
from ..http11.connection import HTTP11Connection
File "/usr/local/lib/python3.10/site-packages/hyper/http11/connection.py", line 13, in <module>
from collections import Iterable, Mapping
ImportError: cannot import name 'Iterable' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py)
Looks like this dependency is using a deprecated API
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
"An ImportError will be raised as collections.Iterable will be in collections.abc.Iterable"
this is coming from https://github.com/python-hyper/hyper which is deprecated so I guess it's time to switch to https://www.python-httpx.org/ or similar.
Reactions are currently unavailable