Closed alx-sdv closed 1 year ago
Interesting - installing stackprinter alone works fine (so docker run -it python:3.9-slim /bin/bash -c "pip install stackprinter && python -c 'import stackprinter'"
), but it fails alongside numpy 🤔
Interesting - installing stackprinter alone works fine (so
docker run -it python:3.9-slim /bin/bash -c "pip install stackprinter && python -c 'import stackprinter'"
), but it fails alongside numpy thinking
It happens because packaging
is imported only if the environment contains numpy
.
So I think it affects any environment containing numpy
and unpinned stackprinter
.
Imho, more preferable solution is to implement np version checking and don't add packaging
dependency.
Ah of course! Thanks a lot. I'll get rid of the version check entirely, this case should've just been handled with an exception handler from the start. I'll close this PR and will push a fix soon - thanks a lot for the report!
Import fails since #57
setuptools.find_packages()
can't obtainpackaging
Steps to reproduce:
docker run -it python:3.9-slim /bin/bash -c "pip install numpy stackprinter && python -c 'import stackprinter'"