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

Error installing #375

Open
ChapperNi opened this issue Nov 1, 2024 · 1 comment
Open

Error installing #375

ChapperNi opened this issue Nov 1, 2024 · 1 comment
Labels
invalid This doesn't seem right

Comments

@ChapperNi
Copy link

Pretty sure this is something on my end. Already tried disabling firewall

[14:29:57] ERROR [red] Package loading failed
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\utils\sync.py:19 in run_sync │
│ ❱ 19 return asyncio.run(coroutine) │
│ C:\Python311\Lib\asyncio\runners.py:186 in run │
│ ❱ 186 raise RuntimeError( │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: asyncio.run() cannot be called from a running event loop

During handling of the above exception, another exception occurred:

╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ D:\rednv\Lib\site-packages\redbot\core\core_commands.py:189 in _load │
│ ❱ 189 await bot.load_extension(spec) │
│ D:\rednv\Lib\site-packages\redbot\core\bot.py:1684 in load_extension │
│ ❱ 1684 lib = spec.loader.load_module() │
│ in _check_name_wrapper:605 │
│ in load_module:1120 │
│ in load_module:945 │
│ in _load_module_shim:290 │
│ in _load:721 │
│ in load_unlocked:690 │
│ in exec_module:940 │
│ in call_with_frames_removed:241 │
│ C:\Users\winmi\redbot lol\cogs\CogManager\cogs\pllyrics_init
.py:5 in │
│ ❱ 5 from pllyrics.cog import PyLavLyrics │
│ C:\Users\winmi\redbot lol\cogs\CogManager\cogs\pllyrics\cog.py:13 in │
│ ❱ 13 from pylav.extension.red.ui.sources.lyrics import LyricsSource │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\pylav\extension\red\ui\sources\lyrics.py:10 in │
│ ❱ 10 from pylav.players.tracks.obj import Track │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\pylav\players\tracks\obj_init
.py:23 in │
│ ❱ 23 from pylav.nodes.api.responses.track import Track as APITrack │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\pylav\nodes\api\responses\track.py:8 in │
│ ❱ 8 from pylav.storage.database.tables.tracks import TrackRow │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\pylav\storage\database\tables\tracks.py:12 in │
│ ❱ 12 from pylav.storage.database.tables.misc import DATABASE_ENGINE │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\pylav\storage\database\tables\misc.py:25 in │
│ ❱ 25 DATABASE_ENGINE = PostgresEngine( │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\engine\postgres.py:374 in init
│ ❱ 374 super().init( │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\engine\base.py:105 in init
│ ❱ 105 run_sync(self.prep_database()) │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\utils\sync.py:24 in run_sync │
│ ❱ 24 return future.result() │
│ C:\Python311\Lib\concurrent\futures_base.py:456 in result │
│ ❱ 456 return self.__get_result() │
│ C:\Python311\Lib\concurrent\futures_base.py:401 in __get_result │
│ ❱ 401 raise self._exception │
│ C:\Python311\Lib\concurrent\futures\thread.py:58 in run │
│ ❱ 58 result = self.fn(*self.args, **self.kwargs) │
│ C:\Python311\Lib\asyncio\runners.py:190 in run │
│ ❱ 190 return runner.run(main) │
│ C:\Python311\Lib\asyncio\runners.py:118 in run │
│ ❱ 118 return self._loop.run_until_complete(task) │
│ C:\Python311\Lib\asyncio\base_events.py:654 in run_until_complete │
│ ❱ 654 return future.result() │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\engine\postgres.py:419 in prep_database │
│ ❱ 419 await self._run_in_new_connection( │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\engine\postgres.py:523 in _run_in_new_connection │
│ ❱ 523 connection = await self.get_new_connection() │
│ C:\Users\winmi\redbot lol\cogs\Downloader\lib\piccolo\engine\postgres.py:478 in get_new_connection │
│ ❱ 478 return await asyncpg.connect(**self.config) │
│ D:\rednv\Lib\site-packages\asyncpg\connection.py:2329 in connect │
│ ❱ 2329 return await connect_utils._connect( │
│ D:\rednv\Lib\site-packages\asyncpg\connect_utils.py:1017 in _connect │
│ ❱ 1017 raise last_error or exceptions.TargetServerAttributeNotMatched( │
│ D:\rednv\Lib\site-packages\asyncpg\connect_utils.py:991 in _connect │
│ ❱ 991 conn = await _connect_addr( │
│ D:\rednv\Lib\site-packages\asyncpg\connect_utils.py:828 in _connect_addr │
│ ❱ 828 return await __connect_addr(params, True, *args) │
│ D:\rednv\Lib\site-packages\asyncpg\connect_utils.py:873 in __connect_addr │
│ ❱ 873 tr, pr = await connector │
│ D:\rednv\Lib\site-packages\asyncpg\connect_utils.py:744 in _create_ssl_connection │
│ ❱ 744 tr, pr = await loop.create_connection( │
│ C:\Python311\Lib\asyncio\base_events.py:1091 in create_connection │
│ ❱ 1091 raise exceptions[0] │
│ C:\Python311\Lib\asyncio\base_events.py:1070 in create_connection │
│ ❱ 1070 sock = await self._connect_sock( │
│ C:\Python311\Lib\asyncio\base_events.py:974 in _connect_sock │
│ ❱ 974 await self.sock_connect(sock, address) │
│ C:\Python311\Lib\asyncio\proactor_events.py:726 in sock_connect │
│ ❱ 726 return await self._proactor.connect(sock, address) │
│ C:\Python311\Lib\asyncio\windows_events.py:854 in _poll │
│ ❱ 854 value = callback(transferred, key, ov) │
│ C:\Python311\Lib\asyncio\windows_events.py:641 in finish_connect │
│ ❱ 641 ov.getresult() │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ConnectionRefusedError: [WinError 1225] The remote computer refused the network connection

@Drapersniper
Copy link
Member

The Postgres connection string you passed to the bot are not valid? And the bot can't connect to the DB

@Drapersniper Drapersniper added invalid This doesn't seem right and removed Status: Needs Triage labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants