Code:
No module named '_tkinter', please install the python3-tk package
No module named '_tkinter', please install the python3-tk package
import telepot bot = telepot.Bot('3xxxxxx1:AAxxxxxxxxxxxxxxyyyyyyZY') zeitbot = time.strftime(" %d.%m.%Y-%H:%M:%S"); bot.sendMessage(-186806598, 'BM Hilde Eingang aktiv' + zeitbot)
2016-12-11 19:28:47 ERROR sh.gc Method sh.gc exception: No module named '_tkinter', please install the python3-tk package Traceback (most recent call last): File "/usr/lib/python3.4/tkinter/__init__.py", line 39, in <module> import _tkinter ImportError: No module named '_tkinter' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/smarthome/lib/scheduler.py", line 344, in _task obj() File "/usr/local/smarthome/bin/smarthome.py", line 489, in _maintenance references = sum(self._object_refcount().values()) File "/usr/local/smarthome/bin/smarthome.py", line 520, in _object_refcount obj = getattr(module, sym) File "/usr/local/lib/python3.4/dist-packages/urllib3/packages/six.py", line 92, in __get__ result = self._resolve() File "/usr/local/lib/python3.4/dist-packages/urllib3/packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/local/lib/python3.4/dist-packages/urllib3/packages/six.py", line 82, in _import_module __import__(name) File "/usr/lib/python3.4/tkinter/__init__.py", line 41, in <module> raise ImportError(str(msg) + ', please install the python3-tk package') ImportError: No module named '_tkinter', please install the python3-tk package
#!/usr/bin/env python # import telepot bot = telepot.Bot('123456789:ABCDEFGH-Meine-Token ID') bot.sendMessage(chat_id, 'Dies ist ein Test')
ERROR telegram Logic: telegram, File: /usr/local/smarthome/logics/telegram.py, Line: 6, Method: <module>, Exception: name 'chat_id' is not defined
ERROR telegram Logic: telegram, File: /usr/local/lib/python3.4/dist-packages/telepot/api.py, Line: 126, Method: _parse, Exception: ("Bot can't send messages to bots", 403, {'description': "Bot can't send messages to bots", 'ok': False, 'error_code': 403})
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Einen Kommentar schreiben: