ydataai / ydata-profiling

1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.
https://docs.profiling.ydata.ai
MIT License
12.53k stars 1.69k forks source link

Bug Report: not working on python 3.13 due to htmlmin dependency that use removed cgi stdlib module #1675

Open pietroppeter opened 4 days ago

pietroppeter commented 4 days ago

Current Behaviour

the library does not support python 3.13

Expected Behaviour

it should :)

Data Description

no data involved, but run the script code attached with uv to reproduce

Code that reproduces the bug

# /// script
# requires-python = ">=3.13"
# dependencies = [
#     "ydata-profiling",
# ]
# ///

# run this script with `uv run --script script.py` to reproduce

if __name__ == "__main__":
    import ydata_profiling

pandas-profiling version

trying to install the latest

Dependencies

the dependency that is broken is htmlmin, which use the stdlib module cgi which was deprecated in python 3.11 and removed in python 3.13. As per this issue a safer dependency seems to be htmlmin2

(i know this is not what I should put in this issue template, but it seemed useful information that should end up somewhere)

OS

No response

Checklist

pietroppeter commented 4 days ago

note that I found a related issue to python 3.13 compatibility https://github.com/ydataai/ydata-profiling/issues/1419 but this is related to a new package, so I thought it could use another issue. Feel free to close this and incorporate the information in that issue (to fix for python 3.13 support you need to fix at least those two things)