Skip to content

Circular import when used in AWS lambda #10345

Answered by Dreamsorcerer
ytao-canva asked this question in Q&A
Discussion options

You must be logged in to vote

You appear to be importing http while presumably in the aiohttp/ directory or something (I'm not too familiar with Lambda env), so it's trying to import the aiohttp.http submodule as a top-level module, when you were probably trying to import the builtin http module (https://docs.python.org/3/library/http.html).

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ytao-canva
Comment options

@Dreamsorcerer
Comment options

@ytao-canva
Comment options

@Dreamsorcerer
Comment options

@webknjaz
Comment options

Answer selected by asvetlov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants