MParvin / TR-CMD

Telegram Remote Command Runner Bot - Safe & Easy run command on remote linux server (Without SSH)
51 stars 9 forks source link

Can't import modules #4

Open catty-dev opened 1 year ago

catty-dev commented 1 year ago

Traceback (most recent call last): File "/home/ubuntu/TR-CMD/bot.py", line 12, in from telegram.ext import Updater, CommandHandler, MessageHandler, Filters File "/usr/local/lib/python3.10/dist-packages/telegram/init.py", line 45, in from .files.file import File File "/usr/local/lib/python3.10/dist-packages/telegram/files/file.py", line 22, in from future.backports.urllib import parse as urllib_parse File "/usr/local/lib/python3.10/dist-packages/future/backports/init.py", line 17, in from .misc import (ceil, File "/usr/local/lib/python3.10/dist-packages/future/backports/misc.py", line 19, in from collections import Mapping, MutableMapping ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

I've installed all requirements

MParvin commented 7 months ago

Sorry for late answer :( According to the following error,, here is an issue for the "collection" module in python 3.10.

from collections import Mapping, MutableMapping

In python3.10 some part of the "collection" module have been moved to the 'collections.abc' module.

so, please use python3.9 or lower to fix this error.