-
-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Description
I'm using fs==2.4.16
but whenever I import fs
I get this error message:
/Users/jjahn/Desktop/Exa/monorepo/python/shared/exa_ml/.venv/lib/python3.10/site-packages/fs/__init__.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
__import__("pkg_resources").declare_namespace(__name__) # type: ignore
It's caused by this line:
__import__("pkg_resources").declare_namespace(__name__) # type: ignore
Just move to PEP420 implicit namespace packaging (no __init__.py
file at all) and it will resolve this error. But it should get fixed before 2025-11-30 or users may have problems
rsangole, fallwest, rkhwaja, pengi, malmeloo and 4 more
Metadata
Metadata
Assignees
Labels
No labels