
This should fix issue #40780 We explicitly cast self.spec["python"].command to str in the filter_file call in _fix_dtrace_shebang to avoid the error ==> Error: TypeError: expected str, bytes or os.PathLike object, not Executable Not sure why the error is appearing (is it only for specific python versions, etc?), but the fix should be quite safe.