swift-river-73520
03/22/2023, 6:18 PMpyproject.toml
file & the poetry_requirements
target. Right now I'm just trying to get tests to run (via pants test src/python/subproject1::
) for one of the subprojects, but I'm getting the following error on an import from a third-party library (dropbox
, but I think this is likely to happen with a number of third-party dependencies):
ModuleNotFoundError: No module named 'pkg_resources'
I see this resolved issue in the pantsbuild github which seems very similar, but specific to gunicorn. I tried adding setuptools
to the pyproject.toml file for the subproject and re-ran generate_lockfiles
before trying the tests again but didn't notice any change. I also tried adding
python_sources(
dependencies=["3rdparty/python#setuptools"]
)
to the BUILD file for the subproject1
folder (not sure this even makes sense), and also didn't see any changes.
Would anyone be able to point me in the right direction?swift-river-73520
03/22/2023, 6:22 PMsetuptools
in the base interpreter that seems to be getting used by Pants (some other stackoverflow threads suggested this), to no availrefined-addition-53644
03/22/2023, 6:26 PMpoetry_requirements(
name="reqs",
overrides={
"dropbox": {"dependencies": [":reqs#setuptools"]},
},
)
https://www.pantsbuild.org/docs/python-third-party-dependencies#requirements-with-undeclared-dependenciesswift-river-73520
03/22/2023, 6:26 PMfuture-dream-25165
10/26/2023, 1:35 PMpulumi-aws
module.
I've added the overrides for setuptools
as per above but when I add to the requirements.txt
then generating the lockfiles seems to take forever and not end. Any thoughts?curved-television-6568
10/26/2023, 3:11 PMPEX_VERBOSE=9
and looking at the pip logs.future-dream-25165
10/26/2023, 3:54 PM