ID 556538 - Python DeprecationWarning messages occur when PYTHONDEVMODE is enabled

Follow

Problem summary:
Python DeprecationWarning messages occur when PYTHONDEVMODE is enabled
 
Customer reported version:
Nuke 14.1v1
 
Customer reported platform:
N/A
 
Steps to reproduce:
1) Open a Command Prompt/Terminal and set the PYTHONDEVMODE environment variable to one:

set PYTHONDEVMODE=1
2) Launch Nuke from the same Command Prompt/Terminal and observe the DeprecationWarning: invalid escape sequence messages:

 
Expected behavior:
Nuke should not have Python warnings when the software is opened.
 
Actual behavior:
After launching Nuke with PYTHONDEVMODE enabled, a number of DeprecationWarnings are printed to the Terminal regarding the escape character: \
 
Workaround:
No known workaround at this time.
 
Reproduced by Support in:
Nuke 15.0v1 - Windows 10, macOS 13 Ventura
Nuke 14.1v1 - Windows 10, CentOS 7
Nuke 14.0v1 - Windows 10
Nuke 13.0v1 - Windows 10, CentOS 7
 
Unable to reproduce bug in:
Nuke 12.2v11 - Windows 10, CentOS 7
 
Earliest version tested:
Nuke 12.2v11 - PYTHONDEVMODE was introduced in Python 3.7, so this issue doesn't appear in this version of Nuke 

    We're sorry to hear that

    Please tell us why