glamorous-accountant-97217
12/09/2022, 9:42 PMextra_requirements
to pytesthappy-kitchen-89482
12/09/2022, 11:56 PM./pants test --debug
?glamorous-accountant-97217
12/09/2022, 11:58 PMpants test
at all-- just running an interactive python session that talks to this service built by pants. i don’t remember whether I had the same problem when running pants pytests that talked to the service, but i can’t imagine that would make a differencehappy-kitchen-89482
12/10/2022, 12:43 AM./pants run ...
?happy-kitchen-89482
12/10/2022, 12:44 AMglamorous-accountant-97217
12/10/2022, 12:45 AM./pants run
glamorous-accountant-97217
12/10/2022, 12:47 AMglamorous-accountant-97217
12/10/2022, 12:47 AMglamorous-accountant-97217
12/10/2022, 12:48 AMEOFError: connection closed by peer
glamorous-accountant-97217
12/10/2022, 12:48 AM./pants run pushdown_service/service.py
. normally I do ./pants package pushdown_service/::
and then dist/pushdown_service.service.pex
glamorous-accountant-97217
12/10/2022, 5:09 AMForkingServer
. @clever-hamburger-59716 suggested ThreadedServer
and that let me debug! I’m not sure whyhappy-kitchen-89482
12/10/2022, 6:31 AMhappy-kitchen-89482
12/10/2022, 6:31 AMglamorous-accountant-97217
12/10/2022, 1:29 PMipdb.set_trace()
but normally (outside of pants and this project entirely) i have PYTHONBREAKPOINT=ipdb.set_trace
in my envrionment and breakpoint()
automatically gives me ipdb instead of pdb. this isn’t working with my pex and I’m stumped. At the point where I run ipdb.set_trace()
I print os.environ["PYTHONBREAKPOINT"]
and it’s ipdb.set_trace
. let me see if I can make a tiny repro repoglamorous-accountant-97217
12/10/2022, 1:30 PMafs
I don’t get an error, while normally I doglamorous-accountant-97217
12/10/2022, 2:23 PMstderr:
pid 75041 -> /Users/maheshvashishtha/.cache/pants/named_caches/pex_root/venvs/c9e55cc98846b062ba9676b3c1a5214512602544/07b01ddf09672a6b76d4e76683b2604821a7fda1/bin/python -sE /Users/maheshvashishtha/.cache/pants/named_caches/pex_root/venvs/c9e55cc98846b062ba9676b3c1a5214512602544/07b01ddf09672a6b76d4e76683b2604821a7fda1/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -q --cache-dir /Users/maheshvashishtha/.cache/pants/named_caches/pex_root/pip_cache --log /private/var/folders/ts/7lr9hnf958b68z7qr4dvtqvh0000gn/T/pants-sandbox-nBWpPv/.tmp/pex-pip-log.9lc3m4zm/pip.log download --dest /Users/maheshvashishtha/.cache/pants/named_caches/pex_root/downloads/resolver_download.w2d38tzk/cp39-cp39-manylinux2014_x86_64 --only-binary :all: fsspec[http] ipdb lz4==4.0.2 modin@ git+<https://github.com/devin-petersohn/modin.git@service/init-prod> rpyc==5.2.3 segment-analytics-python==2.2.1 snowflake-connector-python[pandas]==2.7.11 --platform manylinux2014_x86_64 --implementation cp --python-version 39 --abi cp39 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Could not find a version that satisfies the requirement ipdb
ERROR: No matching distribution found for ipdb
glamorous-accountant-97217
12/10/2022, 2:51 PMpex_binary(
name="service",
entry_point="service.py",
platforms=[
"current",
"manylinux2014-x86_64-cp-39-cp39",
],
dependencies=["//:soda#modin", "ponder/redacted:redacted"],
)
when I comment out the platforms, I can get ipdb. when I add them, I can’t find it. @happy-kitchen-89482 what could be the problem?glamorous-accountant-97217
12/10/2022, 2:55 PMhappy-kitchen-89482
12/10/2022, 11:09 PMipdb
is only available as an sdist on PyPI, so it can only be built for manylinux2014-x86_64-cp-39-cp39
on that platformclever-hamburger-59716
12/10/2022, 11:52 PM