OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Poetry unable to install pymupdfb on M1

Open spuder opened this issue 1 year ago • 1 comments

Describe the bug

Doing make build on an OSX machine with M1/M2/M3 processor causes a failure because pymupdfb (1.24.1) is not available

Setup and configuration

Current version:

2855959c767feaea2b5e90dc76f93e996606d0e9

This was noticed by several other users in PR https://github.com/OpenDevin/OpenDevin/pull/378

  • https://github.com/OpenDevin/OpenDevin/pull/378#issuecomment-2033478758

Related

  • https://github.com/pymupdf/PyMuPDF/issues/2613

One user suggests the solution is to install MuPDF to indirectly cause wheels to be installed

There are no wheels for M1 platforms (and there will not be any time soon). So you must install from sources - which means you must install MuPDF first, then PyMuPDF.

I've tried that with no luck.

spuder avatar Apr 05 '24 22:04 spuder

As mentioned here

Workaround

poetry run pip install pymupdfb
poetry install --without evaluation

(poetry run might not be required), in which case the following might be more appropriate

pip install pymupdfb
poetry install --without evaluation

spuder avatar Apr 05 '24 22:04 spuder

Should be fixed with the new docker installation method

rbren avatar Apr 15 '24 14:04 rbren