Skip to content

ModuleNotFoundError "No module named 'imghdr'" #154

@devlocalhost

Description

@devlocalhost

when i try to add my music library, the app "hangs", keeps loading on "extracting tags from music files"

more details:

thread '<unnamed>' panicked at src/importer.rs:148:25:
called `Result::unwrap()` on an `Err` value: PyErr { type: <class 'ModuleNotFoundError'>, value: ModuleNotFoundError("No module named 'imghdr'"), traceback: Some(<traceback object at 0x7e22d0ee4740>) }
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::result::Result<T,E>::unwrap
             at /usr/src/debug/rust/rustc-1.87.0-src/library/core/src/result.rs:1109:23
   4: resonance::importer::Importer::extract_folder::{{closure}}
             at /usr/src/debug/resonance/resonance/src/importer.rs:148:13

my music library looks like this: alac (m4a) and flac files, all tagged, and with cover images (jpg). i googled this, and it seems to be an issue on the python side? imghdr is being removed/deprecated or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions