[Bug 285927] converters/py-markitdown: ModuleNotFoundError: No module named 'magika'

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Apr 2025 06:19:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285927

            Bug ID: 285927
           Summary: converters/py-markitdown: ModuleNotFoundError: No
                    module named 'magika'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: wen@FreeBSD.org
          Reporter: vedran@miletic.net
             Flags: maintainer-feedback?(wen@FreeBSD.org)
          Assignee: wen@FreeBSD.org

Upon running markitdown command, it prints a message about the missing module:

% markitdown
Traceback (most recent call last):
  File "/usr/local/bin/markitdown", line 5, in <module>
    from markitdown.__main__ import main
  File "/usr/local/lib/python3.11/site-packages/markitdown/__init__.py", line
6, in <module>
    from ._markitdown import (
  File "/usr/local/lib/python3.11/site-packages/markitdown/_markitdown.py",
line 18, in <module>
    import magika
ModuleNotFoundError: No module named 'magika'

The requirement is mentioned here:
https://github.com/microsoft/markitdown/blob/main/packages/markitdown/pyproject.toml

Presumably, this is: https://github.com/google/magika

-- 
You are receiving this mail because:
You are the assignee for the bug.