Autogen with AWS Lambda #1099
-
Hi, I'm trying to write a Lambda function using Autogen, but I'm not being able to create a Layer of Autogen that works on the Lambda Linux environment. I've even pip installed pyautogen on a Linux environment and then created a Layer from it, but I'm getting the following error: "Runtime.ImportModuleError: Unable to import module 'lambda_function': Error importing numpy: you should not try to import numpy fromits source directory; please exit the numpy source tree, and relaunch your python interpreter from there." Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
What's the python version? I know py3.12 is not supported. |
Beta Was this translation helpful? Give feedback.
-
Doesn't look like an issue related to AutoGen. Have you tried running the autogen part of the code locally? |
Beta Was this translation helpful? Give feedback.
-
Hi, I've just discovered what the problem was. I was assuming that my Python version was 3.10, but the EC2 Linux I was running was 3.9. Now it is working at last! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to write a Lambda function using Autogen, but I have "issue with Cache" unable to solve the cache issue any suggestion |
Beta Was this translation helpful? Give feedback.
Hi, I've just discovered what the problem was. I was assuming that my Python version was 3.10, but the EC2 Linux I was running was 3.9. Now it is working at last!