Project

General

Profile

Bug #2815

Package python-magic lacks a main feature

infinite_recursion - 3 months ago - . Updated 3 months ago.

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

#1

Updated by infinite_recursion 3 months 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.

Also available in: Atom PDF