python-magic Questions

5

Solved

I need to get mime type for some files on windows, so i've installed python-magic (on 32-bit python 2.7.3). It depends on unix magic library. Author instructs to get regex2.dll, zlib1.dll and magic...
Camillecamilo asked 7/2, 2013 at 22:8

5

Solved

I am trying to install python-magic for Windows and I have followed all the instructions in https://github.com/ahupp/python-magic and repeated the process several times but I am still getting this ...
Eec asked 19/8, 2013 at 15:55

5

Solved

I have written an email form class in Django with a FileField. I want to check the uploaded file for its type via checking its mimetype. Subsequently, I want to limit file types to pdfs, word, and ...
Earl asked 27/12, 2011 at 17:24

2

Despite following the readme for the module, I continue to get "magic files not found". The readme and "Dependencies" section say: On Windows, copy magic1.dll, regex2.dll, and zlib1.dll onto you...
Grandchild asked 6/1, 2017 at 23:40

1

Solved

I am trying to edit some code that uses python-magic but I get an Import Error: No module called magic. Before I looked around the Internet and found advise on installing python-magic using pip whi...
Cumquat asked 14/10, 2016 at 17:13

1

Solved

I need to determine MIME-types from files without suffix in python3 and I thought of python-magic as a fitting solution therefor. Unfortunately it does not work as described here: https://github.co...
Economics asked 13/8, 2014 at 12:28
1

© 2022 - 2024 — McMap. All rights reserved.