-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAM build stopped working | AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' #64
Comments
I have the same issue. Run
|
From what i can see while troubleshooting, the following package got an update on 01.01.2023: On the libry portal you can see the release notes: Is there a way to fix the version # for this action?? BR |
Relevant: aws/aws-sam-cli#4527
You can change the version of SAM CLI that it installs using the - uses: aws-actions/setup-sam@v2
with:
version: 1.67.0 |
Thanks hoffa I ended up asking chat.openai to fix and it worked with some tweaks:
|
Hi @hoffa , Thanks, but the issues seems to be on the new cryptography-39.0.0 package. Even if I force to use a specific SAM version, it has a version constraint like this:
At the moment I am trying to uninstall the 39 version and revert to the 38.04 but I must confess I am no python expert. :-) I tried to run this after the aws-actions/setup-sam@v2:
To uninstall the 39 and install 38.0.4... The issue is that I am getting: I am certainly missing something. Trying to figure out. BR |
Have a look at my script, you have to change the venv not the machine default python |
PERFECT @nszeitli !!! It worked! |
@nszeitli Nice! For posterity, you could also try: - uses: aws-actions/setup-sam@v2
with:
version: 1.59.0 I haven't tested but IIRC |
having the same issue. any estimates on when will this be fixed? I do not want to pin the version for all lambdas in our infrastructure thanks |
happy new year! |
As I posted here, you can also fix with an additional step after
|
Fixed in SAM CLI v1.68.0 |
FYI you can now avoid issues such as these with - uses: aws-actions/setup-sam@v2
with:
use-installer: true It uses the native installers directly, which is a lot faster and doesn't require to have Python installed. |
Can you clarify please @hoffa what is the native installer? |
@altaurog They're self-contained packages of SAM CLI (i.e. includes everything needed to run it, including Python). They're the suggested installation method for Linux. Under the hood PyInstaller is used. |
failing (was working a week ago)
Run sam build --use-container
The text was updated successfully, but these errors were encountered: