Hi folks, I’m looking for some recommendations on ...
# general
c
Hi folks, I’m looking for some recommendations on how to troubleshoot pants error like
ERROR: Could not find a version that satisfies the requirement PackageName==x.y.z
, where you can successfully run
pip install PackageName==x.y.z
. There is usually a lack of error message output. We get error message like
Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
, but because package is installed in a sealed environment, it’s unclear to me how to find the actual error logs (or is it already cleaned up by the time pants failed?)
w
Usually in these situations I use the
--keep-sandboxes
flag and
-ldebug
to see verbose output
you can then go into a sandbox, run the
__run.sh
to test the issue
p
in a lot of cases. this is because the python interpreter are not tight enough so pants try to resolve a version of the package for every python version that the interpreter constraints allow for. https://www.pantsbuild.org/docs/python-interpreter-compatibility
c
Thank you @wonderful-boots-93625 and @polite-garden-50641
@polite-garden-50641 I’m actually pining to python
3.7.*
Do you think even the minor version wildcard can cause the problem that you mentioned?
w
Is the package when installed with pip, using the same 3.7, and not a pip belonging to a more recent python?