mammoth-queen-9523
06/08/2022, 2:09 PM./pants test ::
it succeeds localy however fails on github runner to download package from private pypi repo:
Error: 2.48 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building 10 requirements for requirements.pex from the 3rdparty/python/default.lock resolve: .......
' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/github/home/.cache/pants/named_caches/pex_root/unzipped_pexes/6059500ace72ed792367231dcc84ab6e7c3b99f0/.bootstrap/pex/pex.py", line 517, in execute
exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
File "/github/home/.cache/pants/named_caches/pex_root/unzipped_pexes/6059500ace72ed792367231dcc84ab6e7c3b99f0/.bootstrap/pex/pex.py", line 422, in _wrap_coverage
return runner(*args)
File "/github/home/.cache/pants/named_caches/pex_root/unzipped_pexes/6059500ace72ed792367231dcc84ab6e7c3b99f0/.bootstrap/pex/pex.py", line 453, in _wrap_profiling
return runner(*args)
File "/github/home/.cache/pants/named_caches/pex_root/unzipped_pexes/6059500ace72ed792367231dcc84ab6e7c3b99f0/.bootstrap/pex/pex.py", line 575, in _execute
return self.execute_entry(
File "/github/home/.cache/pants/named_caches/pex_root/unzipped_pexes/6059500ace72ed792367231dcc84ab6e7c3b99f0/.bootstrap/pex/pex.py", line 757, in execute_entry
return self.execute_entry_point(entry_point)
File "/github/home/.cache/pants/named_caches/pex_root/unzipped_pexes/6059500ace72ed792367231dcc84ab6e7c3b99f0/.bootstrap/pex/pex.py", line 788, in execute_entry_point
return runner()
File "/github/home/.cache/pants/named_caches/pex_root/installed_wheels/6242b902db69f59e1092b406655c0fb1634486c47ce563f5fd27277cf4561822/pex-2.1.90-py2.py3-none-any.whl/pex/bin/pex.py", line 762, in main
do_main(
File "/github/home/.cache/pants/named_caches/pex_root/installed_wheels/6242b902db69f59e1092b406655c0fb1634486c47ce563f5fd27277cf4561822/pex-2.1.90-py2.py3-none-any.whl/pex/bin/pex.py", line 783, in do_main
pex_builder = build_pex(
File "/github/home/.cache/pants/named_caches/pex_root/installed_wheels/6242b902db69f59e1092b406655c0fb1634486c47ce563f5fd27277cf4561822/pex-2.1.90-py2.py3-none-any.whl/pex/bin/pex.py", line 629, in build_pex
result = try_(
File "/github/home/.cache/pants/named_caches/pex_root/installed_wheels/6242b902db69f59e1092b406655c0fb1634486c47ce563f5fd27277cf4561822/pex-2.1.90-py2.py3-none-any.whl/pex/result.py", line 84, in try_
raise ResultError(error=result)
pex.result.ResultError: There was 1 error downloading required artifacts:
1. faust-streaming 0.8+orca.4 from <https://myrepo.io/artifactory/api/pypi/orca-pypi/faust-streaming/0.8.0%2Borca.4/faust-streaming-0.8.0%2Borca.4.tar.gz>
HTTP Error 401:
I have ~/.netrc
file with login/password defined for the pypi machine
and pants.toml
have
[python-repos]
indexes = [
"<https://pypi.org/simple/>",
"<https://myrepo.io/artifactory/api/pypi/orca-pypi/simple>",
]
I succeed to download the package with wget
What am I missing?
pants version 2.11.1rc2refined-addition-53644
06/08/2022, 2:33 PMmammoth-queen-9523
06/09/2022, 9:19 AM/github/home
and user is root
with id=0
mammoth-queen-9523
06/09/2022, 9:21 AM.netrc
file in /root
directory. Once I put .netrc
file in /root
directory the issue solved.
Look like a bug somewhere in pants/pex/pip