Open huettenhain opened 2 years ago
Do you get this error when you run PolyFile from the command line, or only when you try and invoke it programmatically?
I have only attempted to run it programmatically; this is also my use case.
This is related to an unimplemented feature of libmagic that PolyFile has not yet implemented. PolyFile internally circumvents this by disabling the one test related to it, but if you access the MagicMatcher via the API then it does not disable the test. We have started implementing this feature and it will be included in the next release. In the mean time, you can circumvent it using this workaround: https://github.com/trailofbits/polyfile/blob/1718dbb42d1ab87bca69ff7ea7a32feef619e462/tests/test_magic.py#L56
I am running PolyFile version 0.4.2 on Python 3.9.7 on Windows. I get unexpected exceptions of type
NotImplementedError
. Consider the following test:In my setup, this crashes with the following exception:
From my limited understanding, I would expect that this exception should not be propagated to me; instead, I would expect that when a test raises an exception, it is silently discarded as having produced no match.