Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install pygaggle #327

Open
saurabhg-predii opened this issue May 7, 2023 · 10 comments
Open

Unable to install pygaggle #327

saurabhg-predii opened this issue May 7, 2023 · 10 comments

Comments

@saurabhg-predii
Copy link

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
Copy link
Member

ronakice commented May 7, 2023

Can you share your colab?

@saurabhg-predii
Copy link
Author

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
Copy link
Contributor

leobavila commented May 8, 2023

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
Copy link

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
Copy link
Author

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

@jayralencar
Copy link

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
Copy link
Member

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

@leobavila
Copy link
Contributor

It worked, thank you @ronakice.

@saurabhg-predii
Copy link
Author

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/

@shivvor2
Copy link

shivvor2 commented Aug 28, 2024

I faced the same issue and found a way to install pygaggle correctly on google colab as of the time of posting, here are the steps to make it work:

(Colab notebook here)

  1. Install OpenJDK21
    • the default version of OpenJDK on Colab's machines is OpenJDK11 and will cause issues when trying to import stuff
  2. Install pyserini<=0.23.0
  3. Clone the entire repo with the --recursive flag, pip install the requirements.txt file from the pygaggle folder, and then install the library directly from the pygaggle folder !pip install pygaggle/ (need to include slash)

It would be nice if we can just pip install pygaggle, but for now this will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants