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

missing setuptools dependency #451

Closed
Nothing4You opened this issue Feb 21, 2022 · 1 comment
Closed

missing setuptools dependency #451

Nothing4You opened this issue Feb 21, 2022 · 1 comment
Assignees
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@Nothing4You
Copy link

pynetbox currently depends on setuptools being available, but it does not declare setuptools as runtime dependency:

from pkg_resources import get_distribution, DistributionNotFound

pkg_resources is provided by setuptools.

I see 3 ways to solve this:

  1. wrap in try block, catching ImportError
  2. add explicit setuptools dependency
  3. migrate to importlib alternatives as recommended in https://setuptools.pypa.io/en/latest/pkg_resources.html, this can be combined with 1 or 2 (for backported implementations) on older python versions.
@arthanson arthanson added the type: bug A confirmed report of unexpected behavior in the application label Oct 14, 2022
@arthanson arthanson self-assigned this Nov 1, 2022
@abhi1693
Copy link
Member

This will be superseded by #564 when thats merged

@abhi1693 abhi1693 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants