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

cannot import name 'JSimpleSearcherResult' from 'pyserini.pyclass' #20

Open
hosseinfani opened this issue Dec 3, 2020 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@hosseinfani
Copy link
Owner

(ReQue) C:\Users\hfani\Documents\ReQue\develop\qe>python main.py
Traceback (most recent call last):
File "main.py", line 42, in
from expanders.bertqe import BertQE
File "C:\Users\hfani\Documents\ReQue\develop\qe\expanders\bertqe.py", line 13, in
from pygaggle.rerank.base import Query, Text
File "C:\ProgramData\Anaconda3\envs\ReQue\lib\site-packages\pygaggle\rerank\base.py", line 4, in
from pyserini.pyclass import JSimpleSearcherResult
ImportError: cannot import name 'JSimpleSearcherResult' from 'pyserini.pyclass' (C:\ProgramData\Anaconda3\envs\ReQue\lib\site-packages\pyserini\pyclass.py)

@hosseinfani hosseinfani added the bug Something isn't working label Dec 3, 2020
@hosseinfani
Copy link
Owner Author

This is a bug to pygaggle. See here for the related issue.

@hosseinfani hosseinfani self-assigned this Dec 17, 2020
@hosseinfani
Copy link
Owner Author

hosseinfani commented Dec 24, 2020

pygaggle's master is compatible with pyserini 0.10. So, I removed the pygaggle installer from environment.yml and requirement.txt. We have to clone or install it after conda env creation it for now till they release their new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants