You can use redirection, but it will suppress all messages sent to this "stream"; eg.
i178ndude 2> / dev / null
sends stream 2 to the null device (usually stderr programs, but obsolescence warnings can be sent to other threads). This is a "fix, even if you do not know how to" fix it. Indeed, there is the -W option, which can be used as follows: -W ignore::DeprecationWarningor simply -W ignore, which ignores all warnings. You can write a script that calls the python interpreter in your program, or more logically change the #!program with something like#!/usr/bin/env python -W ignore::DeprecationWarning
source
share