Closed ego-lay-atman-bay closed 7 months ago
Thanks for the report @ego-lay-atman-bay. I am able to replicate this. Does this fix it for you (it did for me)?:
pip install setuptools
I'll look into this, thanks again for the report.
pip install setuptools
This fixed it for me.
macOS 12.7.1 Homebrew Python 3.12.1 internetarchive 3.6.0
Oh yeah, that worked for me too. Should this stay open for other people who run into this issue?
Python packaging has changed (read: improved) a fair bit in the past few years. setuptools
used to be the one and only way to do anything with packages. That's not the case anymore. Packages can be installed with something else (if they support it), and it might not be present at runtime.
As long as pkg_resources
is required by the CLI, internetarchive
should depend on setuptools
via install_requires
. The build-backend
should also be specified in pyproject.toml
, though that's unrelated to this issue.
I just installed this package in python 3.12 by running
It was able to install just fine, but when I ran
ia
, it threw this errorI downloaded the repo, and opened it in vscode. After I installed the
pex-requirements.txt
, vscode said thatpkg_resources
was found.I think this might be a problem with python 3.12, because I was able to get it installed and working just fine with python 3.11.