Skip to content

OSX Catalina: 'cfn init' terminated by signal SIGABRT (Abort) #49

@benbridts

Description

@benbridts

I'm not sure if this belongs here, as it's an OSX Catalina / homebrew python issue. I assume people will look here when they run into this error, so maybe it's something to document.

If you run cfn init outside of a virtualernv on OSX Catalina with python3.7 (installed via homebrew), you get this behaviour and error:

~$: cfn init --verbose
Initializing new project
What's the name of your resource type?
(Organization::Service::Resource)
>> MyOrg::Foo::Bar
Select a language for code generation:
[1] python36
[2] python37
(enter an integer):
>> 2
fish: 'cfn init --verbose' terminated by signal SIGABRT (Abort)

Looking at the error report that is generated, this seems to be an issue related to pyhton3 and libcrypto:

Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.

I googled for a solution and I there is a clean workaround (besides running cfn in a virtualenv:

# Install openssl, if it's not installed already
brew install openssl
# Use the openssl libraries
DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH cfn init

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationno fix plannedFor some issues, no fix is feasible. Please see issue itself for the discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions