sinaahmadi / klpt

The Kurdish Language Processing Toolkit
https://sinaahmadi.github.io/klpt/
Other
91 stars 11 forks source link

cyhunspell installation fails #20

Open h3ma209 opened 1 year ago

h3ma209 commented 1 year ago

whatever i do cyhunspell fails i wonder if you found a way to work it out

sinaahmadi commented 1 year ago

Thanks for reporting this, @h3ma209. Would you please provide the error that you got and share the specificities of your system? I just tried installing it in a virtual environment on MacOS and it seems to work. I know there is a problem as it was previously reported, but I want to know what is exactly happening.

h3ma209 commented 1 year ago

kak sinaah i fixed by downgrading the python with 3.8 works fine

sinaahmadi commented 1 year ago

Thanks a lot for reporting this. CyHunspell seems to be causing many issues lately with newer versions of Python but no one seems to be taking care of that package anymore.

I'll try making it clear in the README about version issues.

h3ma209 commented 1 year ago

your welcome <3

alisalehi67 commented 6 months ago

Downgrading to python 3.8 did not fix my issue unfortunately. Here is the error I am getting when I tried to install klpt:

ERROR: Cannot install klpt==0.1.0, klpt==0.1.1, klpt==0.1.2, klpt==0.1.3, klpt==0.1.4, klpt==0.1.5 and klpt==0.1.6 because these package versions have conflicting dependencies.

The conflict is caused by:
    klpt 0.1.6 depends on cyhunspell>=2.0.1
    klpt 0.1.5 depends on cyhunspell>=2.0.1
    klpt 0.1.4 depends on cyhunspell>=2.0.1
    klpt 0.1.3 depends on cyhunspell>=2.0.1
    klpt 0.1.2 depends on cyhunspell>=2.0.1
    klpt 0.1.1 depends on cyhunspell>=2.0.1
    klpt 0.1.0 depends on cyhunspell>=2.0.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
sinaahmadi commented 6 months ago

Hi @alisalehi67, This problem has been reported. I cannot do much about it at this point as the toolkit depends on an external package. I'll make sure to fix that in the future version. For now, a workaround is to install KLPT in a virtual environment. Here are some guidelines.

Please let me know if you still get the same error in a venv.