Skip to content

No running event loop #2

Description

@FuckingToasters
(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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions