Skip to content

Conversation

@yama-is-bocchi
Copy link

Description

This PR fixes an issue where installing sam3 via uv add or a Git-based
dependency (as shown below) causes a FileNotFoundError for the system prompt.

[project]
dependencies = [
    "sam3 @ git+https://github.com/facebookresearch/sam3.git@5eb25fb54b70ec0cb16f949289053be091e16705",
]

How the issue was discovered

The error occurs when running agent_inference in sam3/agent/agent_core.py
without cloning the repository (i.e., when sam3 is installed as a dependency).

Specifically, a FileNotFoundError is raised at the following line, where the
system prompt file is expected to exist relative to the repository structure:

with open(MLLM_SYSTEM_PROMPT_PATH, "r") as f:

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant