You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "c:\Users\foo\test.py", line 9, in <module>
import ydata_profiling
File "C:\Users\foo\AppData\Local\pypoetry\Cache\virtualenvs\foo-nnQxNQNi-py3.12\Lib\site-packages\ydata_profiling\__init__.py", line 14, in <module>
from ydata_profiling.compare_reports import compare # isort:skip # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\foo\AppData\Local\pypoetry\Cache\virtualenvs\foo-nnQxNQNi-py3.12\Lib\site-packages\ydata_profiling\compare_reports.py", line 12, in <module>
from ydata_profiling.profile_report import ProfileReport
File "C:\Users\foo\AppData\Local\pypoetry\Cache\virtualenvs\foo-nnQxNQNi-py3.12\Lib\site-packages\ydata_profiling\profile_report.py", line 9, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Expected Behaviour
The library should be successfully imported.
Data Description
Currently not using any data as it fails on the import.
I've created a pull request for the fix which includes setuptools in the requirements.
However, it is worth noting that pkg_resources is being slowly depreciated in favor of importlib.resources and there is also a really handy migration guide on the subject matter.
It's worth noting that importlib.resources only supports the following APIs:
Current Behaviour
Thanks for the great repository!
Currently fails on the import with
Resulting in:
Expected Behaviour
The library should be successfully imported.
Data Description
Currently not using any data as it fails on the import.
Code that reproduces the bug
pandas-profiling version
4.8.3
Dependencies
OS
Windows 11
Checklist
The text was updated successfully, but these errors were encountered: