I'm getting circular import issue #3828
-
Hey, from telegram import Update
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler I got a circular import issue Traceback (most recent call last):
File "/mnt/data/workspace/ai_projects/playbooks/telegram.py", line 1, in <module>
from telegram import Update
File "/mnt/data/workspace/ai_projects/playbooks/telegram.py", line 1, in <module>
from telegram import Update
ImportError: cannot import name 'Update' from partially initialized module 'telegram' (most likely due to a circular import) (/mnt/data/workspace/ai_projects/playbooks/telegram.py) I'm using python 3.10 and whatever the lib version, it appears. |
Beta Was this translation helpful? Give feedback.
Answered by
Gamma-Software
Aug 5, 2023
Replies: 1 comment 4 replies
-
Hey! Please look at this section in our Wiki. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No need, the issue was I named the python file
telegram.py