KitDevguides

KitDev / Guides / Troubleshooting

Troubleshooting

Problem Solution
No module named kitdev Run the command from the project's root folder (KitDev/), not from inside kitdev/
externally-managed-environment when using pip Activate the virtual environment first (step 4 of the installation)
Installing tgcrypto or uvloop fails On Debian / Ubuntu install build-essential python3-dev. If it keeps failing, create the environment with Python 3.12 or 3.13. On Termux, see Termux: the minimum is installed without them
Revisa tu archivo .env on startup Read the list below it: it says which variable is missing or misspelled. If the name is wrong, it suggests the correct one
Android closes KitDev when the screen turns off Use termux-wake-lock, run it inside tmux and turn off battery optimization for Termux (Termux)
It asks for a phone number or Enter phone number or bot token It's an old KitDev version and SESSION_STRING is missing. Do git pull and check the .env
AUTH_KEY_UNREGISTERED or invalid session The session was closed or copied wrong. Generate a new one with gen_session.py
AUTH_KEY_DUPLICATED The same session is used in two places at once. Generate a different session for each installation
Commands don't respond Check the PREFIX in the .env and type the commands from the session's account
.help comes out as text, without photo or buttons Look at the console: it should say Bot asistente en línea. If not, check the notice that appears. Also check assets/avatars/ and that Kurigram is the pinned version with pip install -r requirements.txt
Unknown thumbnail_source Outdated Kurigram: pip install -r requirements.txt
No se pudo preparar el bot asistente BotFather didn't answer, asked you to wait or the account reached its bot limit. Restart later, or put a bot of your own in BOT_TOKEN
The bot doesn't change the photo from /start Send it as a normal photo, not as a file. The photo is applied by the userbot with BotFather, so it must be on. If it fails, look at the console notice
Waiting for N seconds Telegram temporarily limits some requests. KitDev waits and continues. Avoid restarting many times in a row
The logs group isn't created or gives CHANNEL_INVALID KitDev creates a new one if the saved one no longer exists. If it persists, look at the console notice or use your own group in LOG_CHAT_ID
Modo dev desactivado Put DEV_MODE=true in the .env and restart with .restart
Falta la clave del modo dev Define DEV_KEY in the .env and restart
Demasiados intentos Wait 5 minutes before trying the key again
The .alive time shows UTC Choose your zone in the assistant (/start → 🌎 Time zone). If it fails on Windows, install tzdata with pip install -r requirements.txt
.alive doesn't show the time The default text doesn't include {time}. Add it in Settings → Alive → Text (Assistant bot)
The assistant shows the language I don't want /start → 🌐 Language. The console and the logs group are always in Spanish
$name does nothing The snip doesn't exist: check .snips. Names accept letters, numbers, _ and - (Snips)
A snip with a photo or sticker is no longer sent Snips store references of your account. If you changed account or session, save it again
No tienes permiso de admin para eso en este grupo Your account isn't an admin of the group or lacks that permission. Check it in the group's admin permissions
The bot doesn't respond to /ban in a group Enable it in /start → Settings → 🛡 Admin, add the bot to the group and make it admin. It doesn't work in the logs group or the private chat. If someone else uses it, enable 👥 Group admins (Administration)
Me falta el permiso «…» para usar /comando Give the bot that permission in the group's admin permissions
.install says Modo dev bloqueado Unlock it with .dev yourkey (Dev mode)
.install shows a review and doesn't install The plugin does something sensitive (🔴 or 🟡). Read the code; if you trust it, reply to the file again with .install force (Plugins)
PM Bot messages don't reach you Check /start → Settings → PM Bot: it must be enabled, and look at where you receive (bot chat or logs group) (PM Bot)
data/state.json estaba dañado appears The last copy (data/state.json.bak) was restored and the damaged file was left in data/state.json.corrupt. If there was no valid copy, the settings start empty and the assistant may be created again. Make copies of the data/ folder from time to time

Your problem isn't listed? Open an issue in the repository, with the console notice (without your session, your API_HASH or tokens).