alert-dawn-51425
02/08/2023, 2:40 PMenough-analyst-54434
02/08/2023, 2:51 PMpex_binary
target spell out it must be built for Linux in any way?enough-analyst-54434
02/08/2023, 2:52 PMplatforms
or complete_platforms
fields?enough-analyst-54434
02/08/2023, 2:54 PMalert-dawn-51425
02/08/2023, 3:06 PMpex_binary(
name="app",
entry_point="main.py:main",
layout="packed",
execution_mode="venv",
environment="python_3_9"
)
enough-analyst-54434
02/08/2023, 3:10 PMenough-analyst-54434
02/08/2023, 3:11 PMalert-dawn-51425
02/08/2023, 3:16 PM[environments-preview.names]
default = "//:python_3.9.16"
local = "//:macos_x86_desktop"
python_3_9 = "//:python_3.9.16"
BUILD:
docker_environment(
name="python_3.9.16",
platform="linux_x86_64",
image="python:3.9.16",
python_bootstrap_search_path=["<PATH>"]
)
local_environment(
name="macos_x86_desktop",
compatible_platforms=["macos_x86_64"],
)
local_environment(
name="macos_arm_desktop",
compatible_platforms=["macos_arm64"],
)
witty-crayon-22786
02/08/2023, 3:48 PMwitty-crayon-22786
02/08/2023, 4:26 PMdocker_image
target?witty-crayon-22786
02/08/2023, 4:28 PMalert-dawn-51425
02/08/2023, 5:10 PMpex_binary(
name="app",
entry_point="main.py:main",
layout="packed",
execution_mode="venv",
environment="python_3_9"
)
docker_image(
name="docker",
image_tags=["test"],
repository="ticketing_service",
instructions=[
"FROM python:3.9.16",
"COPY klaviyo.domains.event_processing.ticketing_service.server/app.pex /bin/app.pex",
...]',
]
)
alert-dawn-51425
02/08/2023, 5:10 PMwitty-crayon-22786
02/08/2023, 5:12 PMdocker_image
target should be respecting the environment set on the pex_binary
, but isn’t.witty-crayon-22786
02/08/2023, 5:12 PMwitty-crayon-22786
02/08/2023, 5:52 PMalert-dawn-51425
02/08/2023, 6:58 PMalert-dawn-51425
02/08/2023, 9:03 PM| => ./pants_from_sources package klaviyo/domains/event_processing/ticketing_service/server:app --keep-sandboxes=on_failure
15:58:20.32 [INFO] Preserving local process execution dir /private/var/folders/4j/6vs2kh994fq5klsq03n786zr0000gp/T/pants-sandbox-Q160Nu for Test binary /Users/tyler.bream/.pyenv/shims/python.
15:58:20.42 [INFO] Preserving local process execution dir /private/var/folders/4j/6vs2kh994fq5klsq03n786zr0000gp/T/pants-sandbox-rTpWNQ for Test binary /Users/tyler.bream/.pyenv/versions/2.7.18/bin/python.
15:58:20.51 [INFO] Preserving local process execution dir /private/var/folders/4j/6vs2kh994fq5klsq03n786zr0000gp/T/pants-sandbox-Kc6iX0 for Test binary /Users/tyler.bream/.pyenv/versions/infrastructure-deployment/bin/python.
15:58:20.57 [INFO] Preserving local process execution dir /private/var/folders/4j/6vs2kh994fq5klsq03n786zr0000gp/T/pants-sandbox-4p04ly for Test binary /Users/tyler.bream/.pyenv/shims/python3.
15:58:24.06 [INFO] Preserving local process execution dir /private/var/folders/4j/6vs2kh994fq5klsq03n786zr0000gp/T/pants-sandbox-l4FYF0 for Building 35 requirements for klaviyo.domains.event_processing.ticketing_service.server/app.pex from the 3rdparty/python/python3-deps_lock.txt resolve: backoff==1.11.1, blinker==1.4, certifi==2022.6.15, charset-normalizer==2.1.0, click==8.0.1, deprecated==1.2.13, dumb-init==1.2.5, flask==2.0.1, googleapis-common-protos==1.56.1, grpcio==1.46.3, gunicorn==20.1.0, idna==3.2, itsdangerous==2.0.1, jinja2==3.0.1, markupsafe==2.0.1, opentelemetry-api==1.12.0, opentelemetry-exporter-otlp-proto-grpc==1.12.0, opentelemetry-exporter-otlp-proto-http==1.12.0, opentelemetry-exporter-otlp==1.12.0, opentelemetry-instrumentation-flask==0.33b0, opentelemetry-instrumentation-wsgi==0.33b0, opentelemetry-instrumentation==0.33b0, opentelemetry-proto==1.12.0, opentelemetry-sdk==1.12.0, opentelemetry-semantic-conventions==0.33b0, opentelemetry-util-http==0.33b0, protobuf==3.20.1, requests==2.28.1, sentry-sdk==0.12.3, six==1.16.0, statsd==3.3.0, typing-extensions==4.3.0, urllib3==1.26.6, werkzeug==2.0.1, wrapt==1.14.1
15:58:24.06 [INFO] Completed: Building 35 requirements for klaviyo.domains.event_processing.ticketing_service.server/app.pex from the 3rdparty/python/python3-deps_lock.txt resolve: backoff==1.11.1, blinker==1.4, certifi==2022.6.15... (807 characters truncated)
15:58:24.06 [ERROR] 1 Exception encountered:
Engine traceback:
in `package` goal
ProcessExecutionFailure: Process 'Building 35 requirements for klaviyo.domains.event_processing.ticketing_service.server/app.pex from the 3rdparty/python/python3-deps_lock.txt resolve: backoff==1.11.1, blinker==1.4, certifi==2022.6.15, charset-normalizer==2.1.0, click==8.0.1, deprecated==1.2.13, dumb-init==1.2.5, flask==2.0.1, googleapis-common-protos==1.56.1, grpcio==1.46.3, gunicorn==20.1.0, idna==3.2, itsdangerous==2.0.1, jinja2==3.0.1, markupsafe==2.0.1, opentelemetry-api==1.12.0, opentelemetry-exporter-otlp-proto-grpc==1.12.0, opentelemetry-exporter-otlp-proto-http==1.12.0, opentelemetry-exporter-otlp==1.12.0, opentelemetry-instrumentation-flask==0.33b0, opentelemetry-instrumentation-wsgi==0.33b0, opentelemetry-instrumentation==0.33b0, opentelemetry-proto==1.12.0, opentelemetry-sdk==1.12.0, opentelemetry-semantic-conventions==0.33b0, opentelemetry-util-http==0.33b0, protobuf==3.20.1, requests==2.28.1, sentry-sdk==0.12.3, six==1.16.0, statsd==3.3.0, typing-extensions==4.3.0, urllib3==1.26.6, werkzeug==2.0.1, wrapt==1.14.1' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 190, in _run_module_as_main
mod_name, mod_spec, code = _get_main_module_details(_Error)
File "/usr/local/lib/python3.9/runpy.py", line 239, in _get_main_module_details
return _get_module_details(main_name)
File "/usr/local/lib/python3.9/runpy.py", line 158, in _get_module_details
code = loader.get_code(mod_name)
File "<frozen zipimport>", line 159, in get_code
File "<frozen zipimport>", line 709, in _get_module_code
File "<frozen zipimport>", line 536, in _get_data
FileNotFoundError: [Errno 2] No such file or directory: '/pants-sandbox/pants-sandbox-l4FYF0/./pex'
enough-analyst-54434
02/08/2023, 9:06 PMalert-dawn-51425
02/08/2023, 9:09 PMenough-analyst-54434
02/08/2023, 9:11 PMalert-dawn-51425
02/08/2023, 9:12 PMalert-dawn-51425
02/08/2023, 9:12 PMenough-analyst-54434
02/08/2023, 9:13 PMalert-dawn-51425
02/08/2023, 9:13 PMalert-dawn-51425
02/08/2023, 9:59 PMalert-dawn-51425
02/09/2023, 2:44 PMwitty-crayon-22786
02/09/2023, 8:14 PMwitty-crayon-22786
02/09/2023, 8:18 PMalert-dawn-51425
02/09/2023, 10:50 PMwitty-crayon-22786
02/15/2023, 11:46 PMwitty-crayon-22786
02/15/2023, 11:48 PM2.15.0rc5
? the hypothesis i just posted to the ticket is that the missing file error you experienced shouldn’t happen in 2.15.x
alert-dawn-51425
02/16/2023, 12:19 AMalert-dawn-51425
02/16/2023, 2:43 PMenough-analyst-54434
02/16/2023, 3:04 PMenough-analyst-54434
02/16/2023, 3:05 PMalert-dawn-51425
02/16/2023, 3:06 PMenough-analyst-54434
02/16/2023, 3:13 PMpants_version
you want to seal in as cached to the image.enough-analyst-54434
02/16/2023, 3:16 PMenough-analyst-54434
02/16/2023, 3:17 PMPANTS_VERSION=X pants -V
anywhere to seed version X.enough-analyst-54434
02/16/2023, 3:19 PMenough-analyst-54434
02/16/2023, 3:28 PM