Any other DeprecationWarning s? Run the script as follows:
python -W ignore::DeprecationWarning thescript.py
If you want to ignore all warnings, use
python -W ignore thescript.py
To ignore warnings in the system or in width, set the env variable PYTHONWARNINGS :
PYTHONWARNINGS=ignore::DeprecationWarning
Documentation: Option -W and PYTHONWARNINGS .
What version of python are you using? An invalid warning value should be ignored by default in 2.7.
source share