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

No running event loop #2

Open
FuckingToasters opened this issue Oct 2, 2024 · 0 comments
Open

No running event loop #2

FuckingToasters opened this issue Oct 2, 2024 · 0 comments

Comments

@FuckingToasters
Copy link

(venv) ➜  testing python3 discord-cryptomus.py
/opt/venv/lib/python3.11/site-packages/nextcord/health_check.py:25: DistributionWarning: discord.py is installed which is incompatible with nextcord. Please remove this library by using `pip3 uninstall discord.py`
  warn(message, DistributionWarning, stacklevel=0)
/opt/venv/lib/python3.11/site-packages/nextcord/health_check.py:25: DistributionWarning: discord is installed which is incompatible with nextcord. Please remove this library by using `pip3 uninstall discord`
  warn(message, DistributionWarning, stacklevel=0)
/opt/venv/lib/python3.11/site-packages/nextcord/ext/commands/bot.py:199: MissingMessageContentIntentWarning: Message content intent is not enabled. Prefix commands may not work as expected unless you enable this. See https://docs.nextcord.dev/en/stable/intents.html#what-happened-to-my-prefix-commands for more information.
  warnings.warn(
Traceback (most recent call last):
  File "/root/python-tools/testing/discord-cryptomus.py", line 22, in <module>
    cryptomus = CryptomusClient(MERCHANT_UUID, CRYPTOMUS_API_KEY)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.11/site-packages/CryptomusAPI/client/client.py", line 18, in __init__
    _session = session or AIOHTTPSession(api_key)
                          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.11/site-packages/CryptomusAPI/client/session/_aiohttp.py", line 16, in __init__
    self.session = ClientSession()
                   ^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.11/site-packages/aiohttp/client.py", line 294, in __init__
    loop = loop or asyncio.get_running_loop()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant