These features and behaviours currenly issue deprecation warnings and will be removed in PyQt v5.5. To ensure that the warnings are written to stderr pass the -Wa command line option to the Python interpreter. To run your application as it would with PyQt v5.5 pass the -We command line option instead.
The automatic conversion of a Latin-1 encoded string when a QByteArray is expected is deprecated. In PyQt v5.5 an exception will be raised instead.
There are a number of situations where Python code is executed from C++. Python reimplementations of C++ virtual methods is probably the most common example. If the Python code raises an exception then PyQt will call Python’s PyErr_Print() function which will then call sys.excepthook(). The default exception hook will then display the exception and any traceback to stderr. There are number of disadvantages to this default behaviour:
This behaviour is deprecated in PyQt v5.4. In PyQt v5.5 an unhandled Python exception will result in a call to Qt’s qFatal() function. By default this will call abort() and the application will terminate. Note that an application installed exception hook will still take precedence.