Circular import when used in AWS lambda #10345
Answered
by
Dreamsorcerer
ytao-canva
asked this question in
Q&A
-
I am encountering a weird error with the package in AWS Lambda environment:
Anyone encountered the same and how they get around this, if possible? |
Beta Was this translation helpful? Give feedback.
Answered by
Dreamsorcerer
Jan 21, 2025
Replies: 1 comment 5 replies
-
You appear to be importing |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
asvetlov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).