i try to create layer in aws lambda python SDK of opsgenie but when i run the code i get this error:
''Unable to import module 'lambda_function': No module named 'opsgenie_sdk'
i made dir named (opsgenie/python/lib/python3.9/site-packages) , in the dir i did pip3 install opsgenie-sdk then i zipped the folder
what i must do ?
Hi @Reham Adel!
Unfortunately, it sounds like this is more of an issue with your Lambda configuration than the Opsgenie SDK itself.
I would make sure you've gone through this article (just one I found through a search) and see if it helps clear the error up.
While this is probably a better question for an AWS-centric forum, I have gotten that error when there is something wrong with how I've organized packages in the .zip I'm deploying - or if they are just missing altogether. At first glance, I think you may be installing the SDK locally instead of a target directory:
pip3 install -t path/to/target/folder opsgenie-sdk
or similar based on that help article I linked. Also, you may also only need to install them to opsgenie/python, not opsgenie/python/lib/python3.9/site-packages.
Hope this helps!
In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events