1👍
Problem solved!! In magic.py, change this line
platform_to_lib = {'darwin': ['/opt/local/lib/libmagic.dylib',
'/usr/local/lib/libmagic.dylib',
'/usr/local/Cellar/libmagic/5.10/lib/libmagic.dylib'],
Change “5.10” to “5.11”, because 5.11 is the libmagic version on my Mac.
What a pitfall.. Took me 12 hours to find out
Source:stackexchange.com