PyHive icon indicating copy to clipboard operation
PyHive copied to clipboard

Switch to using sasl3 (sasl doesn't work on newer versions of Python)

Open jamescurtin opened this issue 3 years ago • 2 comments

The extras_require dependencies for hive currently install sasl, though this package was last updated about 5 years ago and has issues when run against newer versions of Python.

This could be resolved by updating to use sasl3, a maintained fork of the sasl project that is compatible with Python 3.

One blocker for this fix is that the thrift_sasl dependency also tries to install the unmaintained version of sasl. There is a PR to address this, but a new release of thrift_sasl would need to be made before this project could fully update.

jamescurtin avatar Mar 04 '21 18:03 jamescurtin

is there a fix for this yet?

absognety avatar May 15 '21 18:05 absognety

The latest version of thrift-sasl has been released 26th of May https://pypi.org/project/thrift-sasl/0.4.3/ and they already got rid of the sasl dependency (it depnds on puresasl whicj is pure-python sasl implementation)

Using pyhive[hive] with sasl package is the last (I hope) blocker for us at Apache Airflow to add full support for Python 3.9.

Maybe you can switch to pure-sasl as well? Can I help somehow?

potiuk avatar Jun 13 '21 20:06 potiuk