issue with running bots

wvery time i try running my discord bot i get this error, how can i fix it Traceback (most recent call last): File "/data/data/com.termux/files/home/hi.py", line 6, in <module> import asyncio File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/init.py", line 8, in <module> from .base_events import * File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/base_events.py", line 18, in <module> import concurrent.futures File "/data/data/com.termux/files/usr/lib/python3.12/concurrent/futures/init.py", line 8, in <module> from concurrent.futures._base import (FIRST_COMPLETED, File "/data/data/com.termux/files/usr/lib/python3.12/concurrent/futures/_base.py", line 7, in <module> import logging File "/data/data/com.termux/files/usr/lib/python3.12/logging/init.py", line 26, in <module> import sys, os, time, io, re, traceback, warnings, weakref, collections.abc File "/data/data/com.termux/files/usr/lib/python3.12/traceback.py", line 5, in <module> import linecache File "/data/data/com.termux/files/usr/lib/python3.12/linecache.py", line 11, in <module> import tokenize File "/data/data/com.termux/files/usr/lib/python3.12/tokenize.py", line 35, in <module> from token import * File "/data/data/com.termux/files/home/token.py", line 3, in <module> import requests File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/requests/init.py", line 43, in <module> import urllib3 File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/urllib3/init.py", line 12, in <module> from logging import NullHandler ImportError: cannot import name 'NullHandler' from partially initialized module 'logging' (most likely due to a circular import) (/data/data/com.termux/files/usr/lib/python3.12/logging/init.py)
3 Replies
[𝐆.𝐂.𝐀.𝐃] Ꮥαtɛʊʀni₭яσɳσאᎶᎶ¹⁰
ive already uninstalled and reinstalled termux uninstalled and reinstalled all packages and stuff checked my token the code worked before until yesterday this started happening
Catinette
Catinette5d ago
you have the error already in that log
Cuteness
Cuteness2d ago
Do you know how to read a Python stack trace? If not, please take the time to learn Python. https://automatetheboringstuff.com/ free to read on the website itself; ebook / physical copies are paid Note: While the book is highly recommended for beginners, we don't offer support for everything the book has to offer (some you cannot even do without a normal Windows / etc, system).
Want results from more Discord servers?
Add your server