Created attachment 200750 [details] Patch file for py-python-magic Update py-python-magic to the latest version which has better support for Python3, specifically so that magic information can be returned as strings instead of bytes.
Thank you for the report and patch Gilbert
(In reply to Kubilay Kocak from comment #1) Thank you!
A commit references this bug: Author: koobs Date: Sat Apr 20 13:11:42 UTC 2019 New revision: 499441 URL: https://svnweb.freebsd.org/changeset/ports/499441 Log: devel/py-python-magic: Update to 0.4.15 - Add USE_GITHUB comment (missing test data files) There are a number of test failures that are a consequence of slight differences between platform magic implementations and/or databases. Two have been reported upstream [1][2] and will be resolved in a subsequent release. [1] https://github.com/ahupp/python-magic/issues/173 [2] https://github.com/ahupp/python-magic/issues/96 PR: 234600 Submitted by: Gilbert Morgan <gmm tutanota com> Changes: head/devel/py-python-magic/Makefile head/devel/py-python-magic/distinfo
Committed, with minor changes. Apologies for the delay Gilbert