-1

Hello StackOverFlow Community.

I am working on a telegram bot but facing the error:

(stockAlert) PS D:\Development\StockAlert> python .\stockAlertBot.py Traceback (most recent call last): File "D:\Development\StockAlert\stockAlertBot.py", line 1, in <module> from telegram.ext.updater import Updater ModuleNotFoundError: No module named 'telegram.ext.updater'

  • I had worked on the same file on my Mac earlier but when I am trying to run it on a Windows machine it is not working.

Error Message: Error

Here is the list of installed packages: package_list

  • OS: Windows 11 Pro
  • Python Version: 3.9.15

Your help is appreciated. Thank you !

Things that I tried:

  • Uninstalling and installing the package
  • Created a new virtual environment and installing the package
  • Rebooting the system
  • [Please don't post screenshots of text/data/code/errors](https://meta.stackoverflow.com/a/285557/15405732). They can't be searched or copied, or even consumed by users of adaptive technologies like screen readers. Instead, paste the code as text directly into your question/answer. If you select it and click the {} button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. Please edit your question to turn the image into well-formatted text. – Koedlt Jan 10 '23 at 12:49
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jan 10 '23 at 12:49

1 Answers1

0

You have installed version 20.0 of python-telegram-bot but your code is written for version <=13.5. Please either upgrade your code to v20 by reading the release notes and the transition guide o install a version of PTB that is compatible with your code base.


Disclaimer: I'm currently the maintainer of python-telgeram-bot.

CallMeStag
  • 5,467
  • 1
  • 7
  • 22