Unable to load downloader #6091

Closed
opened 2023-04-20 15:30:46 +02:00 by IReficul · 1 comment
IReficul commented 2023-04-20 15:30:46 +02:00 (Migrated from github.com)

What Red version are you using?

3.4.19

Cog name

Downloader

Command name

.cog

What did you expect to happen?

I expected the cog Downloader to load.

What actually happened?

The cog downloader does not initialize and I get the following message: There was an error during Downloader's initialization. Check logs for more information.

logs:

Apr 20 13:21:13 lyseocraft python[1623]: /home/ubuntu/redenv/lib/python3.9/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
Apr 20 13:21:13 lyseocraft python[1623]:   warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
Apr 20 13:21:14 lyseocraft python[1623]: [2023-04-20 13:21:14] [INFO] red: Loading packages...
Apr 20 13:21:14 lyseocraft python[1623]: [2023-04-20 13:21:14] [INFO] red: Loaded packages: audio, alias, admin, downloader
Apr 20 13:21:14 lyseocraft python[1623]: [2023-04-20 13:21:14] [ERROR] red.downloader: An unexpected error occurred during Downloader's initialization.
Apr 20 13:21:14 lyseocraft python[1623]: Traceback (most recent call last):
Apr 20 13:21:14 lyseocraft python[1623]:   File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/downloader.py", line 113, in initialize
Apr 20 13:21:14 lyseocraft python[1623]:     await self._repo_manager.initialize()
Apr 20 13:21:14 lyseocraft python[1623]:   File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 1022, in initialize
Apr 20 13:21:14 lyseocraft python[1623]:     await self._load_repos(set_repos=True)
Apr 20 13:21:14 lyseocraft python[1623]:   File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 1218, in _load_repos
Apr 20 13:21:14 lyseocraft python[1623]:     ret[folder.name] = await Repo.from_folder(folder, branch)
Apr 20 13:21:14 lyseocraft python[1623]:   File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 1002, in from_folder
Apr 20 13:21:14 lyseocraft python[1623]:     repo.url = await repo.current_url()
Apr 20 13:21:14 lyseocraft python[1623]:   File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 770, in current_url
Apr 20 13:21:14 lyseocraft python[1623]:     p = await self._run(git_command)
Apr 20 13:21:14 lyseocraft python[1623]:   File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 560, in _run
Apr 20 13:21:14 lyseocraft python[1623]:     p: CompletedProcess = await asyncio.get_running_loop().run_in_executor(
Apr 20 13:21:14 lyseocraft python[1623]:   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
Apr 20 13:21:14 lyseocraft python[1623]:     result = self.fn(*self.args, **self.kwargs)
Apr 20 13:21:14 lyseocraft python[1623]:   File "/usr/lib/python3.9/subprocess.py", line 505, in run
Apr 20 13:21:14 lyseocraft python[1623]:     with Popen(*popenargs, **kwargs) as process:
Apr 20 13:21:14 lyseocraft python[1623]:   File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
Apr 20 13:21:14 lyseocraft python[1623]:     self._execute_child(args, executable, preexec_fn, close_fds,
Apr 20 13:21:14 lyseocraft python[1623]:   File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
Apr 20 13:21:14 lyseocraft python[1623]:     raise child_exception_type(errno_num, err_msg, err_filename)
Apr 20 13:21:14 lyseocraft python[1623]: FileNotFoundError: [Errno 2] No such file or directory: 'git'
Apr 20 13:21:15 lyseocraft python[1623]: [2023-04-20 13:21:15] [INFO] red: Connected to Discord. Getting ready...

How can we reproduce this error?

  1. Run command .load downloader
  2. Run .cog

Anything else?

No response

### What Red version are you using? 3.4.19 ### Cog name Downloader ### Command name .cog ### What did you expect to happen? I expected the cog Downloader to load. ### What actually happened? The cog downloader does not initialize and I get the following message: There was an error during Downloader's initialization. Check logs for more information. logs: ``` Apr 20 13:21:13 lyseocraft python[1623]: /home/ubuntu/redenv/lib/python3.9/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API Apr 20 13:21:13 lyseocraft python[1623]: warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning) Apr 20 13:21:14 lyseocraft python[1623]: [2023-04-20 13:21:14] [INFO] red: Loading packages... Apr 20 13:21:14 lyseocraft python[1623]: [2023-04-20 13:21:14] [INFO] red: Loaded packages: audio, alias, admin, downloader Apr 20 13:21:14 lyseocraft python[1623]: [2023-04-20 13:21:14] [ERROR] red.downloader: An unexpected error occurred during Downloader's initialization. Apr 20 13:21:14 lyseocraft python[1623]: Traceback (most recent call last): Apr 20 13:21:14 lyseocraft python[1623]: File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/downloader.py", line 113, in initialize Apr 20 13:21:14 lyseocraft python[1623]: await self._repo_manager.initialize() Apr 20 13:21:14 lyseocraft python[1623]: File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 1022, in initialize Apr 20 13:21:14 lyseocraft python[1623]: await self._load_repos(set_repos=True) Apr 20 13:21:14 lyseocraft python[1623]: File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 1218, in _load_repos Apr 20 13:21:14 lyseocraft python[1623]: ret[folder.name] = await Repo.from_folder(folder, branch) Apr 20 13:21:14 lyseocraft python[1623]: File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 1002, in from_folder Apr 20 13:21:14 lyseocraft python[1623]: repo.url = await repo.current_url() Apr 20 13:21:14 lyseocraft python[1623]: File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 770, in current_url Apr 20 13:21:14 lyseocraft python[1623]: p = await self._run(git_command) Apr 20 13:21:14 lyseocraft python[1623]: File "/home/ubuntu/redenv/lib/python3.9/site-packages/redbot/cogs/downloader/repo_manager.py", line 560, in _run Apr 20 13:21:14 lyseocraft python[1623]: p: CompletedProcess = await asyncio.get_running_loop().run_in_executor( Apr 20 13:21:14 lyseocraft python[1623]: File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run Apr 20 13:21:14 lyseocraft python[1623]: result = self.fn(*self.args, **self.kwargs) Apr 20 13:21:14 lyseocraft python[1623]: File "/usr/lib/python3.9/subprocess.py", line 505, in run Apr 20 13:21:14 lyseocraft python[1623]: with Popen(*popenargs, **kwargs) as process: Apr 20 13:21:14 lyseocraft python[1623]: File "/usr/lib/python3.9/subprocess.py", line 951, in __init__ Apr 20 13:21:14 lyseocraft python[1623]: self._execute_child(args, executable, preexec_fn, close_fds, Apr 20 13:21:14 lyseocraft python[1623]: File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child Apr 20 13:21:14 lyseocraft python[1623]: raise child_exception_type(errno_num, err_msg, err_filename) Apr 20 13:21:14 lyseocraft python[1623]: FileNotFoundError: [Errno 2] No such file or directory: 'git' Apr 20 13:21:15 lyseocraft python[1623]: [2023-04-20 13:21:15] [INFO] red: Connected to Discord. Getting ready... ``` ### How can we reproduce this error? 1. Run command .load downloader 2. Run .cog ### Anything else? _No response_
Jackenmen commented 2023-04-20 16:32:41 +02:00 (Migrated from github.com)

If you need help using Red, you should ask on our support server at discord.gg/red.

If you need help using Red, you should ask on our support server at [discord.gg/red](https://discord.gg/red).
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#6091
No description provided.