terrier-org / pyterrier

A Python framework for performing information retrieval experiments, building on http://terrier.org/

Home Page:https://pyterrier.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pt.init() doesn't work right

meepo9 opened this issue · comments

This afternoon around 5, I ran my colab project as before, but an error jumped up when initializing pyterrier.

I'm pretty sure it's an internal bug because I asked my classmates to run it in different projects and on different devices and it's still here.

It seems to be a syntax error in one of the library files. The screenshot looks like this.

Image

Please help me out, thanks.

This looks to be an issue with the cwl_eval package, which is used for measures like RBP.

Version 1.0.11 of cwl_eval just appeared on pypi with the above syntax error. You should be able to install the previous version (1.0.10) to resolve the issue:

pip install cwl-eval==1.0.10

Note that if you're using an interactive session (e.g., a notebook), you'll have to restart it after installing the cwl-eval to resolve the issue.

Does this work for you?

I posted an issue about this (ireval/cwl#22) in cwl_eval.

The issue in cwl-eval is now fixed, so the latest version should resolve the issue. This means that installing pyterrier for the first time should now work (since it'll pull the latest cwl-eval), or upgrading cwl-eval as follows:

pip install --upgrade cwl-eval

Does it work for you now @meepo9?

Great, thanks for the update!