Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,969
Community Members
 
Community Events
176
Community Groups

create layer in aws lambda for python SDK of opsgenie issue

Edited

Hi everyone,

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 ?

1 answer

2 votes
Robert Atlassian Team Dec 06, 2021

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!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events