freezing-area-97131
03/31/2022, 3:13 AM[WARN] /home/cedriczheng/.cache/pants/setup/bootstrap-Linux-x86_64/1.23.0_py36/lib/python3.6/site-packages/pex/pep425tags.py:274: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
**** Failed to install importlib_metadata-4.11.3 (caused by: NonZeroExit("received exit code 1 during execution of `['/usr/bin/python2.7', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpwfro9psz']` while trying to execute `['/usr/bin/python2.7', '-s', '-', 'bdist_wheel', '--dist-dir=/tmp/tmpwfro9psz']`",)
):
stdout:
stderr:
Traceback (most recent call last):
File "<stdin>", line 13, in <module>
IOError: [Errno 2] No such file or directory: 'setup.py'
Thanks @happy-kitchen-89482 for pointing out I should fix the importlib-metadata
version to 2.1.3
. But I don’t know which package depends on it. How do I pin the version? I added importlib-metadata==2.1.3
in requirement.txt, but it did not work.happy-kitchen-89482
03/31/2022, 3:58 AM./pants --version
work?)freezing-area-97131
03/31/2022, 4:54 AMhappy-kitchen-89482
03/31/2022, 4:57 AM--print-exception-stacktrace
and -ldebug
, to get more debugging info?freezing-area-97131
03/31/2022, 5:05 AMhundreds-father-404
03/31/2022, 5:18 PMhappy-kitchen-89482
03/31/2022, 5:29 PM[pytest]
section look like?importlib_metadata==2.1.3
but that version of Pants is so old I don't really remember the details, would have to look at the codeimportlib_metadata-4.11.3
in here, but it's related to installing pytest, looks likefreezing-area-97131
04/01/2022, 12:34 AM[pytest]
in [pants.ini]
is like this:
[pytest]
requirements: pytest>=4.6.6,<4.7
unittest2_requirements = coverage==5.2.1
1.23.0
, previously it was 1.22.0
and it was working fine.happy-kitchen-89482
04/01/2022, 12:36 AMpytest_plugins = "+['importlib_metadata==2.1.3']"
freezing-area-97131
04/01/2022, 12:45 AM[pytest]
pytest_plugins = +["importlib_metadata==2.1.3", "pytest>=4.6.6,<4.7", "coverage==5.2.1"]
And I got a different error message now. I will try figure it out by myself first.