emanjavacas / pie

A fully-fledge PyTorch package for Morphological Analysis, tailored to morphologically rich and historical languages.
MIT License
22 stars 10 forks source link

dependency problems #84

Open JessedeDoes opened 1 year ago

JessedeDoes commented 1 year ago

Hi,

I am trying to install PIE (python version 3.10) but I run into dependency problems:

Is there a workaround?

(venv) jesse@svprre10:~/workspace/pie$ pip install nlp-pie==0.3.8 Collecting nlp-pie==0.3.8 Using cached nlp_pie-0.3.8-py2.py3-none-any.whl (84 kB) Collecting click<8.0,>=7.0 Using cached click-7.1.2-py2.py3-none-any.whl (82 kB) ERROR: Could not find a version that satisfies the requirement torch<=1.7.1,>=1.3.1 (from nlp-pie) (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1) ERROR: No matching distribution found for torch<=1.7.1,>=1.3.1

PonteIneptique commented 1 year ago

Hey :) I don't know if @emanjavacas still maintains Pie. In case he does not, I have tried to keep my own version in check with various dependencies ( https://github.com/lascivaroma/PaPie ). Note that it might have some dropped functionalities (as I was not using them and their maintenance was a hassle).

emanjavacas commented 1 year ago

Hey both,

Indeed, I don't have the capacities to keep pie updated to the last pytorch versions. However, I just pip installed it (pip install nlp-pie) and ran the tests and it seems to run fine (using pytorch 2.0). As far as I understand, the update to 2.0 didn't have backwards incompatibilities, so the package should run just fine.

If you don't get to work around this issues " ERROR: No matching distribution found for torch<=1.7.1,>=1.3.1", you could git clone the repo and install it locally.

Let me know if this helps.

Thanks @PonteIneptique for jumping in.

JessedeDoes commented 1 year ago

Thanks both!!

I can install @PonteIneptique's version. I run into cuda issues later on, but that is most likely a problem of my local machine.

PonteIneptique commented 1 year ago

Hey :) If you do not have cuda, run pip install papie --extra-index-url https://download.pytorch.org/whl/cpu, should fix things ;)

JessedeDoes commented 1 year ago

Thanks again! (My machine does have cuda, but it magically gets mixed up on system updates from time to time)