Bug #2815
Package python-magic lacks a main feature
Status:
unconfirmed
Priority:
bug
Assignee:
-
% Done:
0%
Description
python-magic throws up an error on importing from_file from it.
Python 3.8.3 (default, May 17 2020, 18:15:42)
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import magic
>>> from magic import from_file
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'from_file' from 'magic' (/usr/lib/python3.8/site-packages/magic.py)
History
Updated by infinite_recursion over 3 years ago
I checked the above magic.py file. There is no from_file function as is there here
https://github.com/ahupp/python-magic/blob/master/magic.py at line 143.