V
V
Vladimir Lebedev2021-12-19 03:31:05
Python
Vladimir Lebedev, 2021-12-19 03:31:05

Error in Python import telebot how can I solve it?

Help with solving the problem, when starting the bot through the command line, the following error pops up:
line 1 in
import telebot

Import Error: cannot import name "Mapping" from "collections"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-12-19
@hottabxp

1) Downgrade Python from 3.10 to 3.8 (or lower).
2) Replace with 3) For such a statement of the question, they are kicked here! from collections import Mappingfrom collections.abc import Mapping

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question