Helsinki-NLP / OpusFilter

OpusFilter - Parallel corpus processing toolkit
MIT License
101 stars 18 forks source link

Issue during installation #61

Closed evramnarouz closed 11 months ago

evramnarouz commented 1 year ago

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"

evramnarouz commented 1 year ago

you may close this any time you want :smile:

svirpioj commented 1 year ago

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.

svirpioj commented 11 months ago

The 3.0 release is now out, closing this.