Adam Hupp
Adam Hupp
I'm not sure if the mac uses the same file command as debian. If so, then I'd try comparing versions and see if something has changed between. This could be...
fwiw, in debian bullyseye (not docker image) I'm running file 5.38-4, and it does recognize a CSV file.
Can you tell me what distro/libmagic version this is?
I believe this is fixed in 1b6cede2550784251296496ad65ece8266e56250. Can you verify?
magic should fail with an exception if it can't find the DLL. Is there something in the environment that's preventing that error from being printed?
Specifically, this error: https://github.com/ahupp/python-magic/blob/master/magic.py#L211
I can't say why that DLL is failing to load, maybe you have a 32-bit install of msys and are running 64-bit python? python-magic could fix this by catching the...
Does this happen if you directly call `import magic`, outside of a django environment?
It would be surprising if importlib exited. Seems more likely that there's an intermediate module doing something like this: try: import blah except: sys.exit() And then `blah` here depends on...
Did you step on _gcd_import(), or from the spot farther down in magic.py where we throw?