Skip to content
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

boto3 requirement #196

Closed
rpf3 opened this issue Jul 22, 2021 · 1 comment
Closed

boto3 requirement #196

rpf3 opened this issue Jul 22, 2021 · 1 comment

Comments

@rpf3
Copy link

rpf3 commented Jul 22, 2021

I'm trying to use Mangum in my project and running across an error that seems to have to do with a missing boto3 requirement. When I run the following code:

from fastapi import FastAPI
from mangum import Mangum

app = FastAPI()

@app.get("/")
async def root():
    return {"message": "Hello World!"}

handler = Mangum(app)

I get the following error:

ModuleNotFoundError: No module named 'boto3'

The stack trace is pointing to this line of code:

https://github.com/jordaneremieff/mangum/blob/1f543bce883890f6d2487bd141e3f735f4e8ca56/mangum/backends/__init__.py#L14

If I simply add boto3 as a dependency to my project everything works as expected. I see that in in #115 boto3 was made optional but as far as I can tell that has been removed.

@jordaneremieff
Copy link
Collaborator

jordaneremieff commented Jul 23, 2021

Hi @rpf3, thanks for the report. I've released 0.12.1 to make it optional again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants