Skip to content

馃悰 [BUG] - Unable to import module 'lambda_handler': No module named 'openai'#191

Description

@marcelfolaron

Description

Hi,
I was following the instructions for the REST API and for the most part everything worked great but the vast majority of endpoints on postman return the following error message:

"errorMessage": "Unable to import module 'lambda_handler': No module named 'openai'",
"errorType": "Runtime.ImportModuleError",

I tried verifying that I am using python 3.11 and that everything gets installed correctly but can't really figure out what the issue is.

Thank you

Reproduction URL

https://github.com/FullStackWithLawrence/aws-openai

Reproduction steps

1. Follow instructions on https://github.com/FullStackWithLawrence/aws-openai/tree/main/api
2. Try running passthrough.

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Browsers

No response

OS

Mac

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency filegood first issueGood for newcomerspythonPull requests that update Python codeterraformPull requests that update Terraform code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions