cvangysel / pytrec_eval

pytrec_eval is an Information Retrieval evaluation tool for Python, based on the popular trec_eval.
http://ilps.science.uva.nl/
MIT License
282 stars 32 forks source link

pytrec-eval-terrier 0.5.1 #36

Open nimasadri11 opened 2 years ago

nimasadri11 commented 2 years ago

When trying to install pytrec-eval-terrier=0.5.1, I get the below error:

Collecting pytrec-eval-terrier==0.5.1
  Using cached pytrec_eval-terrier-0.5.1.tar.gz (16 kB)
  WARNING: Generating metadata for package pytrec-eval-terrier produced metadata for project name pytrec-eval. Fix your #egg=pytrec-eval-terrier fragments.
WARNING: Discarding https://files.pythonhosted.org/packages/6a/38/d723c26698e517f450ea905f633474e8ba714e23fb67a8c2aa34b803efbf/pytrec_eval-terrier-0.5.1.tar.gz#sha256=55e7f5b2c83f681ac262c975f64fdcbece64fed35508d410e56d2c52f262ebfe (from https://pypi.org/simple/pytrec-eval-terrier/) (requires-python:>=3). Requested pytrec-eval from https://files.pythonhosted.org/packages/6a/38/d723c26698e517f450ea905f633474e8ba714e23fb67a8c2aa34b803efbf/pytrec_eval-terrier-0.5.1.tar.gz#sha256=55e7f5b2c83f681ac262c975f64fdcbece64fed35508d410e56d2c52f262ebfe (from ir-measures==0.1.3) has inconsistent name: filename has 'pytrec-eval-terrier', but metadata has 'pytrec-eval'
ERROR: Could not find a version that satisfies the requirement pytrec-eval-terrier==0.5.1 (from ir-measures) (from versions: 0.5.1)
ERROR: No matching distribution found for pytrec-eval-terrier==0.5.1​

Seems like there are inconsistent names (perhaps in setup.py): pytrec-eval-terrier and pytrec-eval

How can I resolve this?

seanmacavaney commented 2 years ago

Hi @nimasadri11,

Thanks for reporting this problem. It looks like it's installing from source. What platform are you using (OS, python version, etc.)?

I'm able to reproduce the problem on my end by forcing it to install from sdist using pip install pytrec-eval-terrier==0.5.1 --no-binary=:all: (installing via bdist works fine) and am investigating the issue.

- sean

nimasadri11 commented 2 years ago

Hi @seanmacavaney

Thank you for the response. I am running CentOS 7 and python 3.7. Is there a URL to the binary dist that I can use in the meanwhile to install?

seanmacavaney commented 2 years ago

It doesn't look like there's a CentOS bdist, but the following should work as a temporary workaround (based on the answer here):

pip install --upgrade --no-cache-dir --use-deprecated=legacy-resolver pytrec-eval-terrier==0.5.1
seanmacavaney commented 2 years ago

@nimasadri11, sdist should be fixed with 0.5.2 -- can you try installing it on CentOS?