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

Can we run this in local set-up? with local --data_path and --repo_path #761

Closed
buntys2010 opened this issue Sep 10, 2024 · 1 comment
Closed
Labels
❔question Further information is requested

Comments

@buntys2010
Copy link

buntys2010 commented Sep 10, 2024

Describe the issue

Does this work with local repo with path like
--data_path="./1.md"
--repo_path="./some_repo"

Or does it require a github link always?

I am trying below command

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock
-e AZURE_OPENAI_API_KEY=""
-e AZURE_OPENAI_ENDPOINT=""
-e AZURE_OPENAI_DEPLOYMENT=""
-e AZURE_OPENAI_API_VERSION=""
-v "$(pwd)/sweagent/keys.cfg:/app/keys.cfg"
sweagent/swe-agent-run:latest
python run.py --image_name=sweagent/swe-agent:latest
--model azure:gpt4
--data_path "/path/ai_store_problems/1.md"
--repo_path "/path/langflow"
--config_file config/default_from_url.yaml
--apply_patch_locally

I am getting error ValueError: repo_path must be empty if running over multiple problem statements

I am actually trying single problem statement.

Optional: Relevant documentation page

No response

@klieret
Copy link
Member

klieret commented Sep 10, 2024

SWE-agent definitely works with local repositories/text files. I think the issue in your command might be that you are using the fully dockerized version, but you probably haven't copied the repository specified by --repo_path to the container. The error message is indeed probably misleading, I'll check if it gets triggered with a non-existing path.

But also: The fully dockerized installation is only a fallback, please use the default installation from source if you can to avoid problems like this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants