green-match-66337
05/12/2022, 11:43 AMaws-lambda-powertools
as a dependency for my lambda... Giving me this error aws-xray-sdk 2.9.0 depends on future
hundreds-father-404
05/12/2022, 4:26 PMaws-lambda-powertools
hundreds-father-404
05/12/2022, 4:29 PMpex3 lock create --resolver-version=pip-2020-resolver --platform=linux_x86_64-cp-39-cp39 aws-lambda-powertools
ERROR: Cannot install aws-lambda-powertools because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies>
pid 63669 -> /Users/ericarellano/.pex/venvs/44f0d229c64d262df3c9196eaa181a922a2a17cd/80f5c4dc0e77a5b728d2e9547d721df713b9ebc9/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /Users/ericarellano/.pex --log /private/var/folders/g7/0lj2pw4d6db67tm8m8xj0rc80000gn/T/tmpuv60hggm/pip.log download --dest /private/var/folders/g7/0lj2pw4d6db67tm8m8xj0rc80000gn/T/tmpn5m9fou5/cp39-cp39-linux_x86_64 --only-binary :all: aws-lambda-powertools --platform manylinux2014_x86_64 --platform linux_x86_64 --implementation cp --python-version 39 --abi cp39 --index-url <https://pypi.org/simple> --retries 5 --timeout 15 exited with 1 and STDERR:
The conflict is caused by:
aws-xray-sdk 2.9.0 depends on future
aws-xray-sdk 2.8.0 depends on future
aws-xray-sdk 2.7.0 depends on future
aws-xray-sdk 2.6.0 depends on future
aws-xray-sdk 2.5.0 depends on future
aws-xray-sdk 2.4.3 depends on future
aws-xray-sdk 2.4.2 depends on future
aws-xray-sdk 2.4.1 depends on future
aws-xray-sdk 2.4.0 depends on future
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
hundreds-father-404
05/12/2022, 4:32 PMpex3 lock create --resolver-version=pip-2020-resolver --platform=linux_x86_64-cp-39-cp39 future
ERROR: Could not find a version that satisfies the requirement future
ERROR: No matching distribution found for future
future
does not release a prebuilt wheel, only an sdist. So future
cannot be installed. https://pypi.org/project/future/#fileshundreds-father-404
05/12/2022, 4:32 PMgreen-match-66337
05/12/2022, 10:13 PMhundreds-father-404
05/12/2022, 10:31 PMgreen-match-66337
05/12/2022, 10:48 PMgreen-match-66337
05/12/2022, 11:00 PMhundreds-father-404
05/12/2022, 11:02 PMSo pants in docker might be best?That's one valid approach! Specifically because you're trying to build for Linux and there are not prebuilt wheels
green-match-66337
05/12/2022, 11:12 PMhundreds-father-404
05/12/2022, 11:14 PMgreen-match-66337
05/12/2022, 11:16 PMhundreds-father-404
05/12/2022, 11:17 PMgreen-match-66337
05/12/2022, 11:17 PMgreen-match-66337
05/12/2022, 11:18 PMhundreds-father-404
05/12/2022, 11:18 PMhundreds-father-404
05/12/2022, 11:19 PMSo need to specify platform in docker tooLike the base image? FYI I wrote this part of the docs this morning, based on a recipe from a user last month https://www.pantsbuild.org/docs/awslambda-python#docker-integration The difference is you will probably want to run Pants inside the Docker image. Normally, Pants's integration w/ Docker is more lightweight that we simply prebuild the wheel for you then
COPY
it into the imagegreen-match-66337
05/12/2022, 11:47 PMgreen-match-66337
05/12/2022, 11:47 PMFailed to begin watching the filesystem: Bad file descriptor (os error 9)
hundreds-father-404
05/12/2022, 11:50 PMhundreds-father-404
05/12/2022, 11:51 PMgreen-match-66337
05/12/2022, 11:56 PMgreen-match-66337
05/13/2022, 12:05 AMgreen-match-66337
05/13/2022, 12:05 AMhundreds-father-404
05/13/2022, 12:06 AMnotify
- but also I think it's slower in general?