busy-piano-29318
05/08/2024, 5:05 PMpants repl components/example/greeting:greeting
and access the function(s) in that module. The other modules in the example
namespace are unavailable. I have tried with pants repl ::
but that exits with a failure, caused by failing to add third-party dependencies (example repo in thread).busy-piano-29318
05/08/2024, 5:06 PMbusy-piano-29318
05/08/2024, 5:07 PMpants repl ::
raise ResolveError(
pex.environment.ResolveError: Failed to resolve requirements from PEX environment @ /private/var/folders/w_/y85gkc6s0hz4_35b4srjbcf80000gn/T/pants-sandbox-KILV1G/local_dists.pex.
Needed cp311-cp311-macosx_14_0_arm64 compatible dependencies for:
1: fastapi~=0.111.0
Required by:
my_fastapi_project 0.0.1
But this pex had no ProjectName(raw='fastapi', validated=False, normalized='fastapi') distributions.
2: uvicorn~=0.29.0
Required by:
my_fastapi_project 0.0.1
But this pex had no ProjectName(raw='uvicorn', validated=False, normalized='uvicorn') distributions.
curved-television-6568
05/08/2024, 6:55 PMbusy-piano-29318
05/08/2024, 7:11 PM.venv
outside of pants. Still an issue for me, the combination of knowing about deps and libs.
By prefixing ipython
emacs
PYTHONPATH=$(pants roots | paste -sd : -):dist/export/python/virtualenvs/python-default/3.11.9/lib/python3.11/site-packages/ ipython
🙏 ⭐