fast-nail-55400
07/16/2021, 9:19 PMstderr:
Failed to resolve requirements from PEX environment @ /tmp/process-executionRnfOYF/lockfile.pex.
Needed manylinux_2_31_x86_64-cp-37-cp37m compatible dependencies for:
1: importlib-metadata>=0.12; python_version < "3.8"
Required by:
pluggy 0.13.1
pytest 6.2.4
But this pex had no 'importlib-metadata' distributions.
from https://github.com/pantsbuild/pants/runs/3089689188?check_suite_focus=true. I had added a PyPi package to the lockfile in that PR. Does the lockfile have to be generated with Python 3.7? (I had run it with Python 3.8.)hundreds-father-404
07/16/2021, 10:57 PMException: String("Cannot strip prefix chroot/dist from root directory (Digest with hash Fingerprint<0e3f69284c886c8b9b330122c22ed47e469e2f9020c9938fdf6d15c24471aeae>) - root directory didn't contain a directory named chroot but did contain directory named: dist")
https://github.com/pantsbuild/pants/runs/3090103212?check_suite_focus=true#step:9:468
Can I revert your change to unblock @wide-energy-11069 from doing the release?curved-television-6568
07/19/2021, 10:54 AMProcess
command due to the result already being present in the cache. I spent a good amount of time head scratching why after some refactorings it didn’t run no more… haha.flat-zoo-31952
07/19/2021, 5:48 PMwitty-crayon-22786
07/19/2021, 8:22 PMwitty-crayon-22786
07/19/2021, 10:26 PMwitty-crayon-22786
07/20/2021, 12:50 AM2.6.x
rc tomorrow: let me know if there is anything else bound for the branch soonrough-minister-58256
07/20/2021, 1:56 AM[omerta pants2wheel (master)]$ git show -s --date="format:%Y.%-m%d.%H%M%S" --format="%cd+%h" HEAD
2021.719.214135+f345b57c9c997
might be useful to get proper --upgrade
and range pin behavior.fast-nail-55400
07/20/2021, 3:18 PMenough-analyst-54434
07/20/2021, 5:46 PM./pants lock ::
doesn't work due to testprojects/
afaict (due to the badreq
req) and running with ./pants lock src:: tests::
completes, but produces surprising results (with only a pex 2.1.42 -> 2.1.43 change, two other requirements, pystache and types-requests - are removed completely from the lockfile). Afaict there is no script or doc or comment in the generated lockfile that give a hint at what command to run to generate the lockfile.hundreds-father-404
07/20/2021, 9:59 PM--interpreter-constraint='pypy==2.7.*'
or --interpreter-constraint='pypy==7.3.5'
?hundreds-father-404
07/20/2021, 10:54 PMcurved-television-6568
07/21/2021, 5:50 AMfrozen_after_init
.
In https://www.pantsbuild.org/docs/style-guide#prefer-dataclasses there’s described how to mutate input parameters during init, but no mention of InitVar
?
https://docs.python.org/3/library/dataclasses.html?highlight=initvar#init-only-variables
Uhm.. reading up on it again, is it to circumvent the limitation described in there regarding frozen instances.. ?
There is a tiny performance penalty when using `frozen=True`:cannot use simple assignment to initialize fields, and must use__init__()
.object.__setattr__()
curved-television-6568
07/21/2021, 12:39 PMhundreds-father-404
07/21/2021, 3:00 PMancient-vegetable-10556
07/21/2021, 6:16 PMwitty-crayon-22786
07/21/2021, 11:27 PMwitty-crayon-22786
07/22/2021, 12:25 AMfast-nail-55400
07/22/2021, 1:55 AMhundreds-father-404
07/22/2021, 6:37 PMcurved-television-6568
07/22/2021, 6:46 PMaverage-vr-56795
07/22/2021, 6:47 PMfs/store/benches/store.rs
)hundreds-father-404
07/22/2021, 8:13 PMhundreds-father-404
07/22/2021, 8:30 PM./pip_compile.pex --pip-args '--platform=fake'
, suggesting the arg gets ignored. (But weirdly, --pip-args '--not-an-opt'
does fail)hundreds-father-404
07/27/2021, 6:00 PMwitty-crayon-22786
07/28/2021, 5:58 PMhundreds-father-404
07/28/2021, 6:48 PMmain
w/ exit code -6 (sigabrt iirc). I don't see a ticket, want me to create one or you're aware of this? https://github.com/pantsbuild/pants/runs/3184651247?check_suite_focus=true#step:11:499hundreds-father-404
07/28/2021, 8:23 PMrapid-bird-79300
07/28/2021, 9:57 PM16:29:49.96 [INFO] Starting: Building isort.pex with 2 requirements: isort[pyproject]>=5.5.1,<5.6, setuptools
16:30:01.34 [INFO] Completed: Building isort.pex with 2 requirements: isort[pyproject]>=5.5.1,<5.6, setuptools
16:30:01.34 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 234, in _run_inner
return self._perform_run(goals)
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 173, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/bin/local_pants_runner.py", line 190, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/engine/internals/scheduler.py", line 530, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/engine/internals/scheduler.py", line 489, in _raise_on_error
raise ExecutionError(
Exception message: 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.fmt.fmt
in pants.backend.python.lint.python_fmt.format_python_target
in pants.core.goals.fmt.enrich_fmt_result
in custom_isort.rules.isort_fmt
in custom_isort.rules.setup_isort
in pants.backend.python.util_rules.pex.create_venv_pex (isort.pex)
in pants.backend.python.util_rules.pex.build_pex (isort.pex)
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/Users/developer/.cache/pants/setup/bootstrap-Darwin-x86_64/2.5.1rc3_py38/lib/python3.8/site-packages/pants/engine/process.py", line 253, in fallible_to_exec_result_or_raise
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Building isort.pex with 2 requirements: isort[pyproject]>=5.5.1,<5.6, setuptools' failed with exit code 1.
stdout:
the solution for the above error was to upgrade pip but this is not obvious to most developers.
My troubleshooting for pants errors usually goes like this:
1. what’s your python version
2. clear pants cache
3. try upgrading pip
4. try a virtualenv
5. if none above work just run lint checks directly to unblock (not ideal)
Developers environments are widely different, most of the time it’s a battle of python versions and path issues. I’m not sure if there are any good solutions for this but I wanted to share some of experiences so far. Any suggestions to improve our consistency across environments would be greatly appreciated.witty-crayon-22786
07/28/2021, 11:35 PM