-
-
Notifications
You must be signed in to change notification settings - Fork 287
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 runtime dependency #503
Comments
Hey, @markgras ... just a shot in the dark here, I don't know if I bumped into the same thing as you or not, but I did experience a similar symptom: django-polymorphic's import of It was in CI (with a work project) and it was pretty odd to me because I wasn't changing anything related to django-polymorphic at the time, I was moving some other dependency from Poetry's list of "dev" deps to the "main" list of deps. Anyhow, in my case what feels like ended up being the problem was that I had crossed up the versions of Poetry I was using locally and in CI: basically, there were two places where we configured the Poetry version and I only updated one, then goofy things happened when I made dependency changes 💥 That issue when away for me when I corrected my using two different versions of Poetry goof. Don't know if you experienced a similar thing, but though I'd share. |
@jonprindiville You ran into this GitHub issue, as |
Nope. I just thought I'd share a possible trigger for this issue in case you were stuck.
Ok, cool, that would have been useful information to include in the description of the issue. Carry on. 👋 |
The
django-polymorphic
package's top-level__init__.py
file importspkg_resources
, which is part of thesetuptools
package. Attempting to usedjango-polymorphic
in a Python environment that does not havesetuptools
installed leads to anImportError
. To fix this,django-polymorphic
's metadata should properly state thatsetuptools
is a runtime dependency of the package.The text was updated successfully, but these errors were encountered: