castorini / pygaggle

a gaggle of deep neural architectures for text ranking and question answering, designed for Pyserini

Home Page:http://pygaggle.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pygaggle release with spacy 3

vinaysetty opened this issue · comments

It looks like the latest master branch uses spacy 3 in requirements.txt but when I try to install the latest version (0.0.3.1) from pypi https://pypi.org/project/pygaggle/ is not compatible with spacy 3.

  1. Will there be a new release with spacy 3?
  2. Why is there no release tag with 0.0.3.1?

Just ran into this issue as well. I actually got a few errors, all thrown by spacy==3.0.6, first complaining that the numpy module wasn't found, then same for Cython module. After installing these into my venv and retrying, I got a very verbose error from spacy, listing many Cython compilation errors.

Anyways, turns out this is a common issue with spacy, there is a discussion about it in their repo explosion/spaCy#7748. TLDR: you just need to update pip and related tools (well, this worked for me at least).

pip install -U pip setuptools wheel

Try this @vinaysetty, hope this works for you like it did for me. I recreated my venv, ran the above command, then installed requirements.txt. No more errors!