colav / impactu

Colav Impactu Issues and Documentation
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Error compare authors #351

Closed omazapa closed 6 days ago

omazapa commented 1 week ago

Error en works con compare_authors

Register with COD_RH: 0001363199 and COD_PRODUCTO: 219 could not be linked to a source (no ids and no name)
Plugin scienti_works/doi failed
joblib.externals.loky.process_executor._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/joblib/_utils.py", line 72, in __call__
    return self.func(**kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 598, in __call__
    return [func(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi_scienti_works/Kahi_scienti_works.py", line 119, in process_doi_group
    process_one(reg, db, collection, empty_work,
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi_scienti_works/process_one.py", line 660, in process_one
    process_one_update(
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi_scienti_works/process_one.py", line 298, in process_one_update
    process_author(entry, colav_reg, db, verbose)
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi_scienti_works/process_one.py", line 149, in process_author
    name_match = compare_author(author_reg, author_db)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: compare_author() missing 1 required positional argument: 'n_authors'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ozapatam/.local/bin/kahi_run", line 37, in <module>
    kahi.run()
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi/Kahi.py", line 151, in run
    status = run()
             ^^^^^
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi_scienti_works/Kahi_scienti_works.py", line 269, in run
    self.process_scienti(self.db, self.collection, config)
  File "/home/ozapatam/.local/lib/python3.12/site-packages/kahi_scienti_works/Kahi_scienti_works.py", line 169, in process_scienti
    Parallel(
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 2007, in __call__
    return output if self.return_generator else list(output)
                                                ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 1650, in _get_outputs
    yield from self._retrieve()
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 1754, in _retrieve
    self._raise_error_fast()
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 1789, in _raise_error_fast
    error_job.get_result(self.timeout)
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 745, in get_result
    return self._return_or_raise()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/joblib/parallel.py", line 763, in _return_or_raise
    raise self._result
TypeError: compare_author() missing 1 required positional argument: 'n_authors'