#Client error

1 messages · Page 1 of 1 (latest)

hollow pivot
#

python main.py
Traceback (most recent call last):
File "F:\bobcat\Canary\Github + VS Code\BobCat-Canary\main.py", line 7, in <module>
client.loop.create_task(startup(client))
File "C:\Users\tyler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\client.py", line 108, in getattr
raise AttributeError(msg)
AttributeError: loop attribute cannot be accessed in non-async contexts. Consider using either an asynchronous main function and passing it to asyncio.run or using asynchronous initialisation hooks such as Client.setup_hook

#

i am not sure what it is coming from

devout latch
hollow pivot
# devout latch this is dpy 2.0, which changed various bot functions to async

aiofiles==0.6.0
aiohttp==3.7.4.post0
aiohttp-cors==0.7.0
aiosignal==1.2.0
aiosqlite==0.17.0
anyio==3.6.1
async-generator==1.10
async-timeout==3.0.1
asyncio-extras==1.3.2
asyncpg==0.25.0
asyncpraw==7.5.0
asyncprawcore==2.3.0
attrs==21.4.0
bidict==0.22.0
botdash.py==0.0.5
cachetools==4.2.4
certifi==2022.6.15
chardet==4.0.0
charset-normalizer==2.0.9
click==8.0.3
clipboard==0.0.4
coc.py==1.3.0
colorama==0.4.4
colorlog==6.6.0
discord-ext-ipc==2.1.1
discord.py==2.0.1
easy-pil==0.1.6
Flask==2.1.1
frozenlist==1.3.0
h11==0.12.0
h2==4.1.0
hpack==4.0.0
httpcore==0.15.0
httptools==0.3.0
httpx==0.23.0
humanfriendly==10.0
humanize==3.13.1
hypercorn==0.13.1
hyperframe==6.0.1
idna==3.3
importlib-metadata==4.11.3
install==1.3.5
iso8601==0.1.16
itsdangerous==2.0.1
Jinja2==3.0.3
lxml==4.7.1
MarkupSafe==2.0.1
motor==2.5.1
multidict==5.2.0
oauthlib==3.2.0
Pillow==8.4.0
priority==2.0.0
psutil==5.8.0
pure25519==0.0.1
py-cord==2.1.3
pycodestyle==2.8.0
pycparser==2.21
PyJWT==2.3.0
pymongo==3.12.3
PyNaCl==1.4.0
pyperclip==1.8.2
pypika-tortoise==0.1.2
pyreadline3==3.4.1
python-dateutil==2.8.2
python-dotenv==0.19.2
python-engineio==4.3.4
python-socketio==5.7.1
pytz==2022.1
requests==2.27.1
rfc3986==1.5.0
six==1.16.0
sniffio==1.2.0
speedtest-cli==2.1.3
toml==0.10.2
topggpy==1.4.0
tortoise-orm==0.18.0
typing_extensions==4.0.1
ujson==4.3.0
update-checker==0.18.0
urllib3==1.26.8
wavelink==1.3.2
websocket-client==1.3.3
websockets==3.4
Werkzeug==2.0.3
wsproto==1.1.0
yarl==1.7.2
youtube-search-python==1.6.6
zipp==3.8.0

hollow pivot