Common Errors
General
-
ImportError: cannot import name 'Self' from 'typing'
You have an outdated version of Python. Download 3.11.
-
sqlite3.OperationalError: unable to open database file
Create a
sessionsfolder in the UB folder. -
AttributeError: 'Config' object has no attribute 'BOT_TOKEN'
You didn't specify the bot token in
config.yaml. -
AttributeError: 'Config' object has no attribute 'PHONES'
You didn't specify phone numbers in
config.yaml. -
FileNotFoundError: [Errno 2] No such file or directory: '...\storage\nYlI2wkF6G.pkl'
Create a
storagefolder in the UB folder. -
pyrogram.errors.exceptions.bad_request_400.BotInlineDisabled: Telegram says: [400 BOT_INLINE_DISABLED] - The inline feature of the bot is disabled (caused by "messages.GetInlineBotResults")
You didn't enable Inline mode for the bot in @BotFather.
-
error: subprocess-exited-with-error
There are several possibilities:
- If you're using Termux, update it, as it's likely an older version.
- If you're on your PC/Laptop, you probably have the wrong Python version. Install 3.11.
-
sqlite3.OperationalError: database is locked
Ensure that UB is not running elsewhere. If this doesn't help, try the following:
- Windows
- Linux
- Download and install
handle:- Download Handle.zip.
- Extract all files to
C:\Windows\System32.
cd sessionshandle RimTUB.session
taskkill /f /pid 8388, where 8388 is the PID found above.
cd sessionssudo apt install lsof -ylsof RimTUB.session

kill -9 2276290, where 2276290 is the PID found above.
MavisHost
-
/usr/local/bin/python: can't open file '/home/container/main.py' : [Errno 2] No such file or directory
You didn't move the UB files to the root. Go to the RimTUB folder, select all files, click the
Movebutton, and move them to the path..(two dots). -
/usr/local/bin/python: can't open file '/home/container/App.py' : [Errno 2] No such file or directory
You didn't set
PY APP FILEin theStartuptab. Set it tomain.py.