JetBrains-Research / pubtrends

Scientific literature explorer. Runs a Pubmed or Semantic Scholar search and allows user to explore high-level structure of result papers
Apache License 2.0
36 stars 2 forks source link

SemanticScholar about paper doesn't work properly #162

Closed olegs closed 4 years ago

olegs commented 5 years ago

Use search by title 'Automatic differentiation in PyTorch' and get error message:

[2019-08-31 10:24:12,867: INFO/MainProcess] Received task: find_paper_async[913ee31e-0210-4bbf-8029-a3f541c4a173]
[2019-08-31 10:24:12,983: ERROR/ForkPoolWorker-2] Task find_paper_async[913ee31e-0210-4bbf-8029-a3f541c4a173] raised unexpected: AttributeError("'SemanticScholarLoader' object has no attribute 'find'")
Traceback (most recent call last):
  File "/Users/oleg/miniconda3/envs/pubtrends/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/Users/oleg/miniconda3/envs/pubtrends/lib/python3.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/Users/oleg/work/pubtrends/models/celery/tasks.py", line 90, in find_paper_async
    return loader.find(key, value)
AttributeError: 'SemanticScholarLoader' object has no attribute 'find'
ctrltz commented 5 years ago

I just realized that it was not implemented for Semantic Scholar at all. I will fix this and add tests in the near future to be sure that everything works properly.

olegs commented 4 years ago

At the moment it is implemented but for some reason analysis got stuck in the queue.

Screenshot 2020-01-20 at 13 32 22
olegs commented 4 years ago

Closing as cannot reproduce.