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

Failed to build matplotlib images. #286

Open
kohankhaki opened this issue Jan 13, 2025 · 5 comments
Open

Failed to build matplotlib images. #286

kohankhaki opened this issue Jan 13, 2025 · 5 comments

Comments

@kohankhaki
Copy link

kohankhaki commented Jan 13, 2025

build_image.log

All matplotlib images fail to build due to the following error:
I have attached the .logfile for reference.
This issue occurs when using Inspect to run the swe-bench evaluation, and then the benchmark uses this repo to create images.

error: Failed to download any of the following: ['http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz'].

@john-b-yang
Copy link
Member

What device are you building on?

@kohankhaki
Copy link
Author

kohankhaki commented Jan 13, 2025

It is on a x86_64 Ubuntu vm and Python 3.10.12.

@john-b-yang
Copy link
Member

Ok thanks, I'll give a random matplotlib instance a run and see what happens.

@kohankhaki
Copy link
Author

Hello, just following up on this. Do you recommend any version of swebench that works with this specification? @john-b-yang

@kohankhaki
Copy link
Author

@john-b-yang

Hello, I resolved the issue by adding the following lines to the setup_repo.sh that is referenced in Dockerfile for Matplotlib instances.

I modified setup_repo.sh by inserting the following lines before python -m pip install -e . to manually download and extract Qhull:

QHULL_URL="http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz"
QHULL_TAR="/tmp/qhull-2020-src-8.0.2.tgz"
QHULL_BUILD_DIR="/testbed/build"

wget -O "$QHULL_TAR" "$QHULL_URL" || {
    echo "Failed to download qhull. Check the URL or provide the file manually."
    exit 1
}

mkdir -p "$QHULL_BUILD_DIR"
tar -xvzf "$QHULL_TAR" -C "$QHULL_BUILD_DIR"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants