qurator-spk / mods4pandas

Extract the MODS/ALTO metadata of a bunch of METS/ALTO files into pandas DataFrames for data analysis
Apache License 2.0
11 stars 0 forks source link

ValueError: Unknown tag "{http://www.loc.gov/mods/v3}partName" #6

Closed mikegerber closed 2 years ago

mikegerber commented 2 years ago
/home/mike/devel/modstool-github/qurator/modstool/modstool.py:504: UserWarning: Exception in test-data/PPN1727545451.xml:
Unknown tag "{http://www.loc.gov/mods/v3}partName"
  warnings.warn('Exception in {}:\n{}'.format(mets_file, e))
Traceback (most recent call last):
  File "/home/mike/devel/modstool-github/qurator/modstool/modstool.py", line 488, in process
    d = flatten(mods_to_dict(mods, raise_errors=True))
  File "/home/mike/devel/modstool-github/qurator/modstool/modstool.py", line 293, in mods_to_dict
    .is_singleton().has_no_attributes().descend(raise_errors)
  File "/home/mike/devel/modstool-github/qurator/modstool/modstool.py", line 69, in descend
    return _to_dict(self.is_singleton().group[0], raise_errors)
  File "/home/mike/devel/modstool-github/qurator/modstool/modstool.py", line 201, in _to_dict
    return mods_to_dict(root, raise_errors)
  File "/home/mike/devel/modstool-github/qurator/modstool/modstool.py", line 377, in mods_to_dict
    raise ValueError('Unknown tag "{}"'.format(tag))
ValueError: Unknown tag "{http://www.loc.gov/mods/v3}partName"