https://pantsbuild.org/ logo
#general
Title
# general
c

clever-gigabyte-29368

05/12/2023, 4:57 PM
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

wonderful-boots-93625

05/12/2023, 4:59 PM
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

polite-garden-50641

05/12/2023, 5:02 PM
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

clever-gigabyte-29368

05/16/2023, 12:14 AM
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

wonderful-boots-93625

05/16/2023, 12:35 AM
Is the package when installed with pip, using the same 3.7, and not a pip belonging to a more recent python?