Skip to main content
Version: 2.2.2-1

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 sessions folder 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 storage folder 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:

    1. Download and install handle:
      1. Download Handle.zip.
      2. Extract all files to C:\Windows\System32.
    2. cd sessions
    3. handle RimTUB.session
    4. taskkill /f /pid 8388, where 8388 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 Move button, 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 FILE in the Startup tab. Set it to main.py.