Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can Start Discord bot[BUG] #2

Open
WaynexGamer31 opened this issue Aug 10, 2022 · 9 comments
Open

I can Start Discord bot[BUG] #2

WaynexGamer31 opened this issue Aug 10, 2022 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@WaynexGamer31
Copy link

No description provided.

@WaynexGamer31 WaynexGamer31 added the bug Something isn't working label Aug 10, 2022
@Commandserver
Copy link
Owner

I need more details. e.g. errors, console output

@LunarLoom24
Copy link

Traceback (most recent call last):
File "D:\Vamos.lv-Roleplay\Serveris0Backup-VPS(23.01.23)\statusbots2023-2\bot.py", line 378, in
client = Client(
^^^^^^^
File "D:\Vamos.lv-Roleplay\Serveris0Backup-VPS(23.01.23)\statusbots2023-2\bot.py", line 107, in init
self.loop.create_task(self.update_status_loop())
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\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

@LunarLoom24
Copy link

Any help I have same isuse bot can't be started

@Commandserver
Copy link
Owner

You're using python 3.1
Try it with python 3.8 or 3.9

@LunarLoom24
Copy link

i can try use python 3.11.2. Are it will work?

@Commandserver
Copy link
Owner

Commandserver commented Mar 3, 2023

No. Use python 3.8 or 3.9

@LunarLoom24
Copy link

2023-04-24 02:35:10,154:INFO:Started with python version 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)]
2023-04-24 02:35:10,155:WARNING:PyNaCl is not installed, voice will NOT be supported

@LunarLoom24
Copy link

Traceback (most recent call last):
File "D:\Fracture Roleplay\testa\FiveM-Dashboard-Bot\bot.py", line 378, in
client = Client(
^^^^^^^
File "D:\Fracture Roleplay\testa\FiveM-Dashboard-Bot\bot.py", line 107, in init
self.loop.create_task(self.update_status_loop())
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\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

@Commandserver
Copy link
Owner

Firstly: use a newer version of python; see the requirements in the README.md

Secondly: have you installed the version 1.7.3 of discord.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants