Document file-magic dependencies in different operating systems #248
Comments
|
ok I did not have libmagic installed, I did |
|
file-magic dont seem to be as perfect chardet as for one of my csv file output from chardet : chardet's output was very helpful while decoding the file. |
|
@rjdp, for text files chardet could be better detecting the file type, but there are some cases in which chardet wrongly detects an encoding - for this reason I prefer to use file-magic. Note that currently only the command-line interface is using file-magic to automatically detect file types. |
|
@cuducos, could you please check if information provided here solves your problem also? |
|
@turicas do you have cases where |
|
oh I understand now, my program expects only text csv files so I am safe I guess, @turicas but as |
|
@rjdp, You can see on this video I made (it's in Portuguese but you can understand the code): https://youtu.be/BTMj5bDXByc?t=412 (look the code history also) |
|
@turicas in case of text files, when will chardet/cchardet fail to predict correctly and file-magic predicts correctly? |
|
@rjdp, I don't have this information in details for you. Look the example in the video, check the mime types supported by |
Yep, it did. I mean… I had to create a bare virtualenv (no site packages) in addition to |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

The text was updated successfully, but these errors were encountered: