Giter Club home page Giter Club logo

Comments (14)

paulypeter avatar paulypeter commented on July 18, 2024

Have you installed "telegram"?

If so, that might be the culprit.

from impfbot.

paulypeter avatar paulypeter commented on July 18, 2024

@sibalzer maybe there is an issue with telegram=0.0.1 being listed in requirements.txt?

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024

could you run:

pip3 install -r requirements.txt

and post the output? (do you run raspbian or noobs?)

from impfbot.

tkurzer avatar tkurzer commented on July 18, 2024

from impfbot.

tkurzer avatar tkurzer commented on July 18, 2024

from impfbot.

tkurzer avatar tkurzer commented on July 18, 2024

from impfbot.

Triple1090 avatar Triple1090 commented on July 18, 2024

Hi, I get the same error after pip install -U python-telegram-bot on my Raspberry.

Traceback (most recent call last): File "src/validate_config.py", line 3, in <module> from alerts import alert File "/home/pi/Documents/Impfbot/impfbot-main/src/alerts.py", line 4, in <module> from telegram.ext import Updater File "/home/pi/.local/lib/python3.7/site-packages/telegram/ext/__init__.py", line 21, in <module> from .basepersistence import BasePersistence File "/home/pi/.local/lib/python3.7/site-packages/telegram/ext/basepersistence.py", line 25, in <module> from telegram import Bot ImportError: cannot import name 'Bot' from 'telegram' (/home/pi/.local/lib/python3.7/site-packages/telegram/__init__.py)

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024

do you currently run python on the pi for anything else?

from impfbot.

Triple1090 avatar Triple1090 commented on July 18, 2024

do you currently run python on the pi for anything else?

PiHole is currently running, apart from that the Pi is on Idle.

from impfbot.

Triple1090 avatar Triple1090 commented on July 18, 2024

Update: I commented the Telegram-parting in settings.py out. Now it's running fine on the Pi.

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024

I am currently adding apprise #51. I'm also replacing the telegram backend with the apprise one at the same time. That should fix it.

from impfbot.

Muehli25 avatar Muehli25 commented on July 18, 2024

had the same issue, using a venv fixed it for me, maybe another installes pip package is causing this issue

from impfbot.

Aletho avatar Aletho commented on July 18, 2024

Either one or both fixed it for me. Can't remember the sequence though.
pip3 uninstall telegram
pip3 uninstall python_telegram_bot

Followed by
pip3 install -r requirements.txt

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024

should be fixed with #83 (new backend)

from impfbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.