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

Parse FLAC file failed #57

Open
mengyyy opened this issue Oct 4, 2020 · 0 comments
Open

Parse FLAC file failed #57

mengyyy opened this issue Oct 4, 2020 · 0 comments

Comments

@mengyyy
Copy link

mengyyy commented Oct 4, 2020

Ubuntu 16.04
Python 3.8

Flac file: https://files.catbox.moe/gafg3k.flac
file_hash: 138ae53711c6ec55ee88c9e8f54c846e469649c1bc16d5011786b1d70d143828

In [21]: with hachoir.parser.createParser("./gafg3k.flac") as parser:
    ...:      result = hachoir.metadata.extractMetadata(parser)
    ...:

[warn] [/metadata] Duplicate field name Key 'stream_info' already exists
...
...
...
[warn] [/metadata] Duplicate field name Key 'stream_info' already exists---------------------------------------------------------------------------
UniqKeyError                              Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/hachoir/field/generic_field_set.py in _addField(self, field)
    193         try:
--> 194             self._fields.append(field._name, field)
    195         except UniqKeyError as err:

/usr/local/lib/python3.8/dist-packages/hachoir/core/dict.py in append(self, key, value)
     66         if key in self._index:
---> 67             raise UniqKeyError("Key '%s' already exists" % key)
     68         self._index[key] = len(self._value_list)^C

UniqKeyError: Key 'stream_info' already exists

During handling of the above exception, another exception occurred:

KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-21-a7157485c236> in <module>
      1 with hachoir.parser.createParser("./gafg3k.flac") as parser:
----> 2      result = hachoir.metadata.extractMetadata

eyboardInterrupt


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant