Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: pkg_resources is deprecated as an API. #182

Open
matejsp opened this issue Dec 11, 2023 · 1 comment
Open

Warning: pkg_resources is deprecated as an API. #182

matejsp opened this issue Dec 11, 2023 · 1 comment

Comments

@matejsp
Copy link

matejsp commented Dec 11, 2023

With python 3.11 getting the following warning:

  File "/Users/user/projects/project/.venv/lib/python3.11/site-packages/marshmallow_jsonschema/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution
  File "/Users/user/projects/project/.venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 118, in <module>
    warnings.warn(
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
@hnandiwada
Copy link

This is now causing a critical error when I build with an amd64 machine with Python 3.13.0. When I just shrink the requirements to ddtrace==2.10.6 and marshmallow-jsonschema==0.13.0, I get a bunch of errors like "Python recognizes 'ddtrace.vendor.psutil.arch.aix' as an importable package[^1], but it is absent from setuptools' packages configuration." and it fails to build the ddtrace wheel. I also tried to add setuptools==75.1.0 and it didn't change much. If it would help, I can provide a more detailed log but it should be reproducible with that minimal configuration. For now, I was able to downgrade to Python 3.12.7 and it worked, but I'd prefer not to have to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants