Github Agents shows internal runtime errors about Python

I have an Agent that is supposed to read best practices from a private Github repo. When I run the crew I get:

  1. Subprocess execution failed: Subprocess failed with return code 1. STDERR: Building salesforce-managed-package-development-crew @ file:///tmp/crewai_io7woptf Built salesforce-managed-package-development-crew @ file:///tmp/crewai_io7woptf Uninstalled 1 package in 0.28ms Installed 1 package in 0.59ms /shared_venv/lib/python3.12/site-packages/alembic/config.py:598: DeprecationWarning: No path_separator found in configuration; falling back to legacy splitting on spaces, commas, and colons for prepend_sys_path. Consider adding path_separator=os to Alembic config. util.warn_deprecated( Error during execution: GithubLoader requires extra dependencies. Install with `pip install gitpython==3.1.38 PyGithub==1.59.1` Traceback (most recent call last): File "/shared_venv/lib/python3.12/site-packages/embedchain/loaders/github.py", line 30, in __init__ from github import Github ModuleNotFoundError: No module named 'github' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/crew/src/crewai_studio_runner/subprocess/launcher.py", line 239, in main execute_crew(args.module_name, args.class_name, inputs) File "/crew/src/crewai_studio_runner/subprocess/launcher.py", line 202, in execute_crew crew = crew_class().crew() ^^^^^^^^^^^^ File "/shared_venv/lib/python3.12/site-packages/crewai/project/crew_base.py", line 40, in __init__ self.map_all_task_variables() File "/shared_venv/lib/python3.12/site-packages/crewai/project/crew_base.py", line 240, in map_all_task_variables self._map_task_variables( File "/shared_venv/lib/python3.12/site-packages/crewai/project/crew_base.py", line 273, in _map_task_variables self.tasks_config[task_name]["agent"] = agents[agent_name]() ^^^^^^^^^^^^^^^^^^^^ File "/shared_venv/lib/python3.12/site-packages/crewai/project/utils.py", line 11, in memoized_func cache[key] = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/crewai_io7woptf/src/salesforce_managed_package_development_crew/crew.py", line 71, in salesforce_developer_architect GithubSearchTool(config=embedding_config_githubsearchtool, gh_token="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") File "/shared_venv/lib/python3.12/site-packages/crewai_tools/tools/github_search_tool/github_search_tool.py", line 49, in __init__ self._loader = GithubLoader(config={"token": self.gh_token}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/shared_venv/lib/python3.12/site-packages/embedchain/loaders/github.py", line 32, in __init__ raise ValueError( ValueError: GithubLoader requires extra dependencies. Install with `pip install gitpython==3.1.38 PyGithub==1.59.1` /shared_venv/lib/python3.12/site-packages/litellm/llms/custom_httpx/async_client_cleanup.py:66: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop()

The Agents says when I ask for help:

:magnifying_glass_tilted_left: Error Analysis:

The issue now is missing Python dependencies for the GitHub Search Tool. The CrewAI Studio environment is missing required packages:

  • gitpython==3.1.38

  • PyGithub==1.59.1

This is a system-level dependency issue that prevents the GitHub Search Tool from initializing properly.

:thinking: Questions for You:

  1. Can you install Python packages in your CrewAI Studio environment? Do you have access to install these dependencies?

  2. Alternative approach: Would you be open to using the GitHub Issues Search tool instead? I noticed it’s available and might not have the same dependency requirements.

  3. Private repo access: Do you need to search the actual file contents of your repository, or would it be sufficient to reference your repository structure and standards in the agent’s instructions?

:light_bulb: Possible Solutions:

Option A: If you can install dependencies:

  • Install gitpython==3.1.38 and PyGithub==1.59.1 in your environment

  • Keep the current GitHub Search Tools

Option B: Try the GitHub Issues Search tool:

  • Replace with GITHUB_SEARCH_ISSUE tool (might have different dependencies)

Option C: Reference-based approach:

  • Remove GitHub tools and provide detailed repository standards directly in agent instructions

  • Agents would work from the detailed guidelines you provide rather than searching live

Which option would work best for your setup? Or do you have another preference for accessing your private repository standards?

12:41

That doesnt make any sense to me and looks like a bug.

SOS!