Closed sferhan closed 4 years ago
I woud suggest using sam build --use-container
for such problematic dependencies. Are you able to install pyrsistent through pip on windows at all?
Didn't know about the --use-container argument. Will try that out. Yes I can install pyrsistent on windows.
Also encountered this same error on OSX, workaround sam build --use-container
worked. Not sure what the issue is.
Closing the issue. The built wheel needs to be compatible for a lambda like environment. so always best to build inside a container.
Description:
Using sam build for my application is behaving differently on linux and windows systems. I am trying to use python package jsonschema in my project. Jsonschema has a dependency pyrsistent which does not have a wheel package. Sam tries to create a wheel package succeeds regardless of the OS but then on windows it doesn't detect the built wheel and shows pyrsistent as incompatible.
Steps to reproduce the issue:
Sam Build
Observed result: Failure on windows:
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Causes problem on Windows and Build succeeds on Linux
Output of
sam --version
:SAM CLI, version 0.14.1