hundreds-father-404
04/14/2021, 9:11 PMhundreds-father-404
04/14/2021, 9:17 PMechoing-nightfall-72095
04/15/2021, 9:24 AMpants package ::
:
Engine traceback:
in select
in pants.core.goals.package.package_asset
in pants.backend.python.goals.package_pex_binary.package_pex_binary (apps/semantic-tagging-manager-service)
in pants.backend.python.util_rules.pex.two_step_create_pex
in pants.backend.python.util_rules.pex.create_pex (__requirements.pex)
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/home/cue/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/engine/process.py", line 255, in fallible_to_exec_result_or_raise
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Resolving 4 requirements: fastapi==0.63.0, hypercorn==0.11.2, pydantic==1.7.3; python_version >= "3.6", requests==2.25.1' failed with exit code -9.
stdout:
stderr:
I haven’t changed any setup or requirements. Any ideas why this is suddenly happening?user
04/15/2021, 7:23 PMhttps://pbs.twimg.com/media/EzBt6h9UUAAlUED.png▾
user
04/15/2021, 7:23 PMearly-toothbrush-63898
04/15/2021, 8:19 PMsetup.py
rather than BUILD files? I could probably build a wheel of the subproject and have pants treat it is an external dependency, but would appreciate if pants could automate this for me.happy-kitchen-89482
04/19/2021, 7:37 PMuser
04/19/2021, 8:43 PMuser
04/19/2021, 9:14 PMbusy-vase-39202
04/19/2021, 9:18 PMwitty-crayon-22786
04/20/2021, 12:57 AMuser
04/20/2021, 2:16 AMuser
04/20/2021, 2:40 AMuser
04/21/2021, 9:29 AMhttps://pbs.twimg.com/media/EzeeohAUUAATgeK.jpg▾
brash-baker-91190
04/21/2021, 1:49 PMsetuptools
50.3.2, but with 2.4.0, we're now pulling in setuptools
53.1.0. However, we're also using the python_awslambda
packaging type in our codebase, which is based on lambdex
, which apparently has a setuptools
constraint of <50.4,>=50.3.0
, which is unsatisfiable with setuptools==53.1.0
. I can pin setuptools
to the old 50.3.2 and still build lambdas, but this was rather unexpected. I see a few old open PRs on the lambdex repository that seem possibly related (such as https://github.com/wickman/lambdex/pull/8).
Is this a known issue? Is there a better way to handle such conflicts than what I'm doing? Thanks in advance.user
04/21/2021, 5:20 PMhundreds-father-404
04/21/2021, 5:33 PM./pants package
are valid? For example, something like this:
pex_binary(name="main", entry_point="main.py", validate_argv=["--help"])
Then Pants would run dist/../main.pex --help
for you as part of ./pants package
user
04/22/2021, 3:55 AMuser
04/22/2021, 3:55 AMclean-night-52582
04/22/2021, 9:58 PMbrash-baker-91190
04/23/2021, 4:30 PM16:26:31.31 [WARN] Completed: lint - isort failed (exit code 2).
.cache/pex_root/venvs/d8105fd40948579fedc63bb8ddd363d251b7db7a/5dc7bde7966ce85a9f3820e78694dc0e8d63768d/pex: line 7: syntax error near unexpected token `('
.cache/pex_root/venvs/d8105fd40948579fedc63bb8ddd363d251b7db7a/5dc7bde7966ce85a9f3820e78694dc0e8d63768d/pex: line 7: ` venv_dir = os.path.abspath(os.path.dirname(__file__))'
I'm working on getting access to the build nodes to dig in further, but it looks like after the failing pants run that pex_root
directory isn't present anymore, making it tricky to debug. Any ideas on how I might be able to debug this? Thanks 🙇brash-baker-91190
04/23/2021, 4:31 PMuser
04/26/2021, 3:40 AMcalm-alarm-89082
04/26/2021, 6:25 PM18:18:28.00 [INFO] Long running tasks:
110.81s Resolving 3rdparty/python/constraints.txt
I could not figure out why, do you have any suggestion how to investigate/solve this?fresh-architect-74417
04/27/2021, 7:34 PMfresh-architect-74417
04/27/2021, 10:12 PMvisibility = ["//visibility:public"]
fresh-architect-74417
04/27/2021, 10:13 PMfierce-spring-67521
04/28/2021, 4:14 AMclean-night-52582
04/28/2021, 7:00 AMplain-carpet-73994
04/28/2021, 4:24 PMmy_target
and generates some new files. As I understand it, I can return a custom`Goal` subclass that contains some information about those files but that does not generate new targets. Now suppose I want to make sure my generated code is safe via bandit
. Since I don't have a new target and bandit
's @rule
doesn't take a MyCustomGoal
how do I tell bandit
that it depends on (or should check) these custom files?