-
Notifications
You must be signed in to change notification settings - Fork 173
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
AWS Lambda: OSError: cannot load library 'libngspice.so' #350
Comments
Did you try to install libngspice ? If I understand, Amazon linux user dnf as package manager. Please read the section for RPM distributions : |
In Amazon Linux 2, the package manager is yum. I find a way to install it on Amazon Linux 2 by containerizing the application to create a Lambda Container, if you want I can share my solution. |
Yes I am interested, mostly for sale of curiosity, because AWS is totally new for me. |
In this setup, I'm utilizing PySpice 1.5 alongside various dependencies specified in the requirements.txt file. As previously mentioned, I'm operating within an environment running Amazon Linux 2, which employs the yum package manager. In this specific context, I'm focused on installing NgSpice version 34, as it's the mandated version for our purposes. The installation process involves configuring NgSpice 34 to be used as shared libraries. The flags I've provided in the following command are crucial for this setup: The necessary instructions for this installation can be found within the "docs," specifically the INSTALL file available on SourceForge, as well as through various discussions on relevant forums. Within the Dockerfile, the sections of utmost significance are indicated by the comments In the first section, I'm ensuring all prerequisites required for NgSpice are installed. The subsequent section involves the download and installation of the NgSpice tool itself. This comprehensive approach ensures the successful integration of NgSpice within the lambda function. |
OS: Amazon Linux 2
Python Version: 3.10
PySpice Version: 1.5
I'm attempting to use the PySpice library within an AWS Lambda function, but encountered some issues along the way. I diligently followed the installation guide for Linux using PyPl, as it was the only viable option within this environment. However, when I attempt to run the command
pyspice-post-installation --check-install
, it presents the following error:"OSError: cannot load library 'libngspice.so': libngspice.so: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libngspice.so.'"
Can someone guide me on how to resolve this issue? I greatly appreciate your help!
The text was updated successfully, but these errors were encountered: