#๐Ÿ”’ Can't connect to Wave link

20 messages ยท Page 1 of 1 (latest)

radiant lanternBOT
#

@prisma kraken

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

#

Hey @prisma kraken!

It looks like you're trying to paste code into this channel.

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
west quest
#

Discord links are purged, strip it before posting

prisma kraken
#

@bot.event
async def on_ready():
    print(f"Logged in as {bot.user}")
    await connect_to_lavalink()

async def connect_to_lavalink():
    node = await wavelink.NodePool.create_node(
        bot=bot, 
        host="lava-v3.ajieblogs.eu.org",
        port=443,
        password=""
    )
    print("Connected to Lavalink node")
#

here

#

gives me this error
AttributeError: module 'wavelink' has no attribute 'NodePool'

west quest
#

You're following an old tutorial I think

#

NodePool was renamed Pool some time ago

prisma kraken
# west quest NodePool was renamed Pool some time ago
2024-11-23 03:15:26 ERROR    discord.client Ignoring exception in on_ready
Traceback (most recent call last):
  File "C:\Users\RSR\AppData\Roaming\Python\Python312\site-packages\discord\client.py", line 449, in _run_event
    await coro(*args, **kwargs)
  File "c:\Users\RSR\Downloads\Music\connect.py", line 11, in on_ready
    await connect_to_lavalink()
  File "c:\Users\RSR\Downloads\Music\connect.py", line 14, in connect_to_lavalink
    node = await wavelink.Pool.create_node(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Pool' has no attribute 'create_node'
#

still same

quiet timber
#

Well no, it's not the same error

prisma kraken
#

my bad

quiet timber
#

You're going to hit a lot of those if you keep using an outdated tutorial, you should find something more up to date

prisma kraken
#

๐Ÿ’€

#

i just created ticket coz im unable to find new tutorial

west quest
#

you could try asking there

radiant lanternBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.