Helsinki-NLP/OpusFilter

Issue during installation

evramnarouz opened this issue · 3 comments

Faced this issue during installation, and the solution was not an easy one to find, so wanted to share that with you.

system: ubuntu 22 -- python 3.8

Issue: "metadata-generation-failed" when
pip install opusfilter
failing when installing pyhash package

Solution: downgrading the setuptools
pip install "setuptools<58.0.0"

you may close this any time you want 😄

Yes, unfortunately pyhash has not been updated to support more recent setuptools versions. Due to this, I have replaced pyhash with xxhash in the development version of OpusFilter. The problem is still mentioned in the old README (e.g. in master branch), but no longer in the default page, which is from the development branch. Sorry about this!

Anyway the change will be there in the next release. Until that I recommend installing OpusFilter from the development branch when using Python>=3.8.

The 3.0 release is now out, closing this.