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

AttributeError #213

Closed olegs closed 4 years ago

olegs commented 4 years ago

Version 0.2.387

[2020-01-30 08:58:55,715: ERROR/ForkPoolWorker-2] Task analyze_search_terms[a6733f40-a3d4-4e00-8547-e3df5ff0ddad] raised unexpected: AttributeError("'ProgressLogger' object has no attribute 'error'")
Traceback (most recent call last):
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/user/models/celery/tasks.py", line 29, in analyze_search_terms
    analyzer.analyze_papers(ids, query, current_task)
  File "/home/user/models/keypaper/analysis.py", line 104, in analyze_papers
    self.cit_df = self.loader.load_citations(self.ids, current=5, task=task)
  File "/home/user/models/keypaper/pm_loader.py", line 162, in load_citations
    self.progress.error(f'Failed to load citations.')
AttributeError: 'ProgressLogger' object has no attribute 'error'