apache / iceberg-python

Apache PyIceberg
https://py.iceberg.apache.org/
Apache License 2.0
309 stars 114 forks source link

distutils removed in Python >= 3.12 #859

Closed noahseger closed 19 hours ago

noahseger commented 6 days ago

Apache Iceberg version

None

Please describe the bug 🐞

So this crashes in latest Python https://github.com/apache/iceberg-python/blob/a6cd0cf325b87b360077bad1d79262611ea64424/pyiceberg/utils/config.py#L19C28-L19C37

Fokko commented 6 days ago

Thanks for reporting this Noah, probably we want to replace that import with just a function in PyIceberg.

cc @MehulBatra

MehulBatra commented 1 day ago

Adding a function with the same name in the types.py to replace the distutil dependency, as Python 3.12 no longer support the distutil package.

MehulBatra commented 1 day ago

https://github.com/apache/iceberg-python/pull/880 Solves this