Skip to content

Commit 92335d2

Browse files
committed
pylibmagic to avoid ImportError: failed to find libmagic. Check your installation
1 parent 784065e commit 92335d2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies = [
1919
"lxml==5.2.2",
2020
"json-stream==2.3.2",
2121
"python-magic==0.4.27",
22+
"pylibmagic==0.5.0"
2223
]
2324
requires-python = ">=3.10"
2425
readme = "README.txt"

src/npoapi/media_backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Dict, Optional, Union
88
from xml.dom import minidom
99

10+
import pylibmagic
1011
import magic
1112

1213

0 commit comments

Comments
 (0)