All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.8k stars 4.27k forks source link

Poetry unable to install pymupdfb on M1 #791

Closed spuder closed 7 months ago

spuder commented 8 months ago

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

Related

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 commented 8 months ago

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
rbren commented 7 months ago

Should be fixed with the new docker installation method