You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying on the Raspberry pi B and Raspberry pi 2 - No Work :(
nataly@nsa-rp1 ~ $ cat bot.py
from pytg import Telegram
tg = Telegram(
telegram="/home/nataly/tg/bin/telegram-cli",
pubkey_file="/home/nataly/tg/server.pub")
receiver = tg.receiver
sender = tg.sender
nataly@nsa-rp1 ~ $ python bot.py
No handlers could be found for logger "pytg.sender"
The text was updated successfully, but these errors were encountered:
natalylopez
changed the title
Trying in Raspberry pi B and Raspberry pi 2 - No Work :(
Trying on Raspberry pi B and Raspberry pi 2 - No Work :(
Jul 7, 2015
natalylopez
changed the title
Trying on Raspberry pi B and Raspberry pi 2 - No Work :(
Trying on the Raspberry pi B and Raspberry pi 2 - No Work :(
Jul 7, 2015
Until I fixed it, add this two lines to the beginning of your code:
importlogginglogging.basicConfig()
Loggers in Python versions below 3 fail, if there is no handler defined. The lines above does that for you.
I'll add a Dummy listener to pytg to avoid that error in future.
luckydonald
changed the title
Trying on the Raspberry pi B and Raspberry pi 2 - No Work :(
No handlers could be found for logger "pytg.sender"
Jul 23, 2015
Trying on the Raspberry pi B and Raspberry pi 2 - No Work :(
The text was updated successfully, but these errors were encountered: