Helsinki-NLP / OpusFilter

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

Installation using pip fails #21

Closed aarnetalman closed 2 years ago

aarnetalman commented 2 years ago

Installation using pip install opusfilter fails when trying to install one of the dependencies pyhash with error: error in pyhash setup command: use_2to3 is invalid.

To fix this make sure you have setuptools==57.5.0 installed (not a version >=58).

svirpioj commented 2 years ago

After some testing, I was able to replicate this with Python 3.7. For some reason, using Python 3.6 or 3.8 does not raise the issue and pyhash-0.9.3 installs fine with setuptools-58.2.0.

svirpioj commented 2 years ago

Should now be fixed in the develop branch. Can you confirm?

aarnetalman commented 2 years ago

Confirmed that it works now. Thanks.

sumit-agrwl commented 2 years ago

pip install opusfilter is still not working with python=3.8

svirpioj commented 2 years ago

@sumit-agrwl: Could you provide some details, please? Is the error the same as above? What platform (OS & version) are you using?