Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ydata_profiling/profile_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

with warnings.catch_warnings():
warnings.simplefilter("ignore")
import pkg_resources
from importlib.metadata import version

if not is_pyspark_installed():
from typing import TypeVar
Expand Down Expand Up @@ -359,7 +359,7 @@ def to_file(self, output_file: Union[str, Path], silent: bool = True) -> None:
"""
with warnings.catch_warnings():
warnings.simplefilter("ignore")
pillow_version = pkg_resources.get_distribution("Pillow").version
pillow_version = version("Pillow")
version_tuple = tuple(map(int, pillow_version.split(".")))
if version_tuple < (9, 5, 0):
warnings.warn(
Expand Down