title: ImportError: cannot import name 'Bot' from partially initialized module 'telegram'
body: <p>I'm getting this error whenever I use the command <em>pip install telegram-bot</em> in cmd:</p>
  <pre><code>    C:\Windows\system32&gt;pip install telegram-bot
  Collecting telegram-bot
  Using cached telegram-bot-0.1.tar.gz (51 kB)
      ERROR: Command errored out with exit status 1:
       command: 'c:\program files\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\miclo\\AppData\\Local\\Temp\\pip-install-j1l7uwqx\\telegram-bot_a7d2b1d51c264e718c85210726554603\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\miclo\\AppData\\Local\\Temp\\pip-install-j1l7uwqx\\telegram-bot_a7d2b1d51c264e718c85210726554603\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' egg_info --egg-base 'C:\Users\miclo\AppData\Local\Temp\pip-pip-egg-info-4qf8pb7l'
           cwd: C:\Users\miclo\AppData\Local\Temp\pip-install-j1l7uwqx\telegram-bot_a7d2b1d51c264e718c85210726554603\
      Complete output (7 lines):
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;C:\Users\miclo\AppData\Local\Temp\pip-install-j1l7uwqx\telegram-bot_a7d2b1d51c264e718c85210726554603\setup.py&quot;, line 12, in &lt;module&gt;
          import telegram
        File &quot;C:\Users\miclo\AppData\Local\Temp\pip-install-j1l7uwqx\telegram-bot_a7d2b1d51c264e718c85210726554603\telegram\__init__.py&quot;, line 15, in &lt;module&gt;
          from telegram import Bot, ChatActions
      ImportError: cannot import name 'Bot' from partially initialized module 'telegram' (most likely due to a circular import) (C:\Users\miclo\AppData\Local\Temp\pip-install-j1l7uwqx\telegram-bot_a7d2b1d51c264e718c85210726554603\telegram\__init__.py)
      ----------------------------------------
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  </code></pre>
  <p>I have installed the latest version of Python and upgraded pip, but nothing changed. I use <em>Pycharm</em> as IDE. When I try to install this module from Pycharm, I get the same error:</p>
  <pre><code>Collecting telegram-bot
    Using cached telegram-bot-0.1.tar.gz (51 kB)
  
  DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated and has no effect anymore. pip 21.1 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
      ERROR: Command errored out with exit status 1:
       command: 'D:\Development\telegram\venv\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\miclo\\AppData\\Local\\Temp\\pip-install-60osryel\\telegram-bot_02585524af70443f98a2a69b3da7ae38\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\miclo\\AppData\\Local\\Temp\\pip-install-60osryel\\telegram-bot_02585524af70443f98a2a69b3da7ae38\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' egg_info --egg-base 'C:\Users\miclo\AppData\Local\Temp\pip-pip-egg-info-0ihid_ld'
           cwd: C:\Users\miclo\AppData\Local\Temp\pip-install-60osryel\telegram-bot_02585524af70443f98a2a69b3da7ae38\
      Complete output (7 lines):
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;C:\Users\miclo\AppData\Local\Temp\pip-install-60osryel\telegram-bot_02585524af70443f98a2a69b3da7ae38\setup.py&quot;, line 12, in &lt;module&gt;
          import telegram
        File &quot;C:\Users\miclo\AppData\Local\Temp\pip-install-60osryel\telegram-bot_02585524af70443f98a2a69b3da7ae38\telegram\__init__.py&quot;, line 15, in &lt;module&gt;
          from telegram import Bot, ChatActions
      ImportError: cannot import name 'Bot' from partially initialized module 'telegram' (most likely due to a circular import) (C:\Users\miclo\AppData\Local\Temp\pip-install-60osryel\telegram-bot_02585524af70443f98a2a69b3da7ae38\telegram\__init__.py)
      ----------------------------------------
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  </code></pre>
  <p>I'm trying to build a telegram bot and host it with Heroku. When typing <em>heroku logs -t</em> in cmd, I get something similar:</p>
  <pre><code>2020-12-04T20:24:35.852594+00:00 app[web.1]: File &quot;main.py&quot;, line 5, in &lt;module&gt;
  2020-12-04T20:24:35.852826+00:00 app[web.1]: from telegram.ext import CommandHandler, MessageHandler, Filters, Updater
  2020-12-04T20:24:35.852831+00:00 app[web.1]: File &quot;/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/__init__.py&quot;, line 21, in &lt;module&gt;
  2020-12-04T20:24:35.853028+00:00 app[web.1]: from .basepersistence import BasePersistence
  2020-12-04T20:24:35.853033+00:00 app[web.1]: File &quot;/app/.heroku/python/lib/python3.6/site-packages/telegram/ext/basepersistence.py&quot;, line 25, in &lt;module&gt;
  2020-12-04T20:24:35.853242+00:00 app[web.1]: from telegram import Bot
  2020-12-04T20:24:35.853243+00:00 app[web.1]: ImportError: cannot import name 'Bot'
  </code></pre>
  <p>These are my imports:</p>
  <pre><code>import os
  import telebot
  import xlrd
  from flask import Flask, request
  from telegram.ext import CommandHandler, MessageHandler, Filters, Updater
  </code></pre>