I am getting a specific warning that I can reliably ignore. This warning is likely to be patched eventually, and my goal is to remove the warning from my console (to declutter it, less spam I have to look at).
Specifically, I am attempting to use FolderBrowse()
in the Python3 package PySimpleGUI
on macOS Mojave. This spits out the following message (on runtime):
objc[2542]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff9408e3d8) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1073e4f50). One of the two will be used. Which one is undefined.
Again, my intent here is to ignore the above warning, not to fix it myself.
I have seen other python warning suppression questions, such as this one
However, I am not trying to hide a group of warning (eg: DeprecationWarning
). Instead I want to only hide the one warning shown above.
edit, code I'm using:
import PySimpleGUI as sg
window_rows = [[sg.InputText(), sg.FolderBrowse()]]
sg.Window('', window_rows).Read()