castorini / pygaggle

a gaggle of deep neural architectures for text ranking and question answering, designed for Pyserini
http://pygaggle.ai/
Apache License 2.0
329 stars 97 forks source link

Unable to install pygaggle #327

Open saurabhg-predii opened 1 year ago

saurabhg-predii commented 1 year ago

Tried installing on colab notebook, Kaggle notebook, mac conda environment, windows conda environment but not able to install it properly.

pip install -r requirements.txt

conda env create -f environment.yml && conda activate pygaggle.

Following is the issue I am getting, Kindly help me resolve the installation issue.

error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip

ronakice commented 1 year ago

Can you share your colab?

saurabhg-predii commented 1 year ago

Can you share your colab?

https://colab.research.google.com/drive/1JBNdMRRG1iLDpSoVDZlJ4M4Ol4i14s63?usp=sharing

Here is the Colab link, Kindly let me know if you are able to access it.

leobavila commented 1 year ago

I have the same problem here. I tried "!pip install --upgrade --force-reinstall git+https://github.com/castorini/pygaggle.git":

error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

jayralencar commented 1 year ago

Use Colab's fallback runtime version: https://medium.com/google-colab/colab-updated-to-python-3-10-27eb02daa162

It should work until mid-May.

saurabhg-predii commented 1 year ago

Thanks @jayralencar, I was able to install pygaggle in colab with python v3.9.16 using Colab's fallback runtime, without any errors.

jayralencar commented 1 year ago

I think it's better to keep this issue open. The problem may return in mid-May when the Colab fallback runtime version stops working.

ronakice commented 1 year ago

This should be resolved by #329, can you confirm? @jayralencar @saurabhg-predii @leobavila? Thanks for pointing it out 👍

leobavila commented 1 year ago

It worked, thank you @ronakice.

saurabhg-predii commented 1 year ago

It works well with the instructions of cloning and running the requirement.txt file but doesn't works with pip installation. It needs to be updated. @ronakice

pip install pygaggle

Reference: https://pypi.org/project/pygaggle/