-
Notifications
You must be signed in to change notification settings - Fork 64
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.10 Incompatibility #102
Comments
I am also facing this issue. Is there any fix for this. |
Is there any fix for this ?? |
I've been diving into this package's source code for a few days now, the error I'm receiving is given below (by omitting most of the error log on purpose): ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py) Anyway, after doing some investigation, I realized that hyper package is no longer maintained (hyper). It is used for making requests over HTTP protocol. My suggestion would be changing it to another alternative such as HTTPX. In Can we do something about this? |
Hi fellas, i just created a pull request related to that issue, i hope it helps. #107 I will be creating pypi package in couple of days |
@mjallday i've fix the error and create an new pypi package https://pypi.org/project/pykSQL/0.11.0/ |
#107 should fix this as mentioned by @dgkncelik |
Hello folks same issue, is this project still active?, is there any other alternative? |
If someone reading this issue needs a python client check this out : https://github.com/sauljabin/kayak/blob/main/kayak/ksql/ksql_service.py |
are there easy straightforward solutions to easily use ksql with python? Please, fix this compatibility issue :( |
Check this out https://github.com/sauljabin/kayak/blob/main/kayak/ksql/ksql_service.py |
Hi. `The Iterable abstract class was removed from collections in Python 3.10. See the deprecation note in the 3.9 collections docs. In the section Removed of the 3.10 docs, the item Remove deprecated aliases to Collections Abstract Base Classes from the collections module. (Contributed by Victor Stinner in bpo-37324.) You can use Iterable from collections.abc instead, or use Python 3.9 if the problem is in a dependency that can't be updated.` But hyper and hyperframe is archived on Jan 13, 2021. We need to change code HTTPConnection on api.py. |
We are also facing this problem when running on anything newer than Python 3.9. This module appears to have stopped having PRs merged. Any suggestions for a similar module that does support versions of Python newer than 3.9? |
Hi @lorenh @enowy @sauljabin @AndreaPrati98 I've forked the code, modernized it (replaced hyper with HTTPX, bumped all dependencies, updated to Python 3.9 as the minimal version, and fixed all the tests to behave with latest KSQL DB versions (0.29.0). Could you check if it's still present in my version? https://github.com/sheinbergon/ksql-python-ng I'll be making a PYPI release soon enough. In the meanwhile, you can test it by running
or
|
Hi,
nice job!
I am not able to check since my environment now is completely change and it would take me a while to test it. Hope you will be able to double check anyway.
Regards,
Andrea Prati
Da: Idan Sheinberg ***@***.***>
Data: giovedì, 25 luglio 2024 alle ore 14:21
A: bryanyang0528/ksql-python ***@***.***>
Cc: Andrea Prati ***@***.***>, Mention ***@***.***>
Oggetto: Re: [bryanyang0528/ksql-python] Python 3.10 Incompatibility (Issue #102)
Hi @lorenh<https://github.com/lorenh> @enowy<https://github.com/enowy> @sauljabin<https://github.com/sauljabin> @AndreaPrati98<https://github.com/AndreaPrati98>
I've forked the code, modernized it (replaced hyper with HTTPX, bumped all dependencies, updated to Python 3.9 as the minimal version, and fixed all the tests to behave with latest KSQL DB versions (0.29.0). Could you check if it's still present in my version?
I'll be making a PYPI release soon enough. In the meanwhile, you can test it by running
pipx install git+https://github.com/sheinbergon/ksql-python-ng.git --include-deps
or
pip install git+https://github.com/sheinbergon/ksql-python-ng.git
—
Reply to this email directly, view it on GitHub<#102 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AO2O5U7ELXTMAO3EJNUJSL3ZODUTZAVCNFSM6AAAAABLON62EKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJQGE4TCNJQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Looks like this dependency is using a deprecated API
"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.
The text was updated successfully, but these errors were encountered: