Problem summary A preferences warning appears when importing the 'nuke' module in Python.
Warning: Warning: preferences are only used in GUI mode
This occurs when using the Python interpreter which ships with Nuke.
Customer reported version Nuke 13.2v4
Customer reported platform CentOS 7
Steps to reproduce
1) Remove any preferences13.x.nk files from your .nuke directory.
2) Open Command Prompt/Terminal.
3) Execute one of the following commands, depending on your operating system. Windows:
cd "C:\Program Files\Nuke13.2v5"
Linux:
cd /usr/local/Nuke13.2v5
4) Then launch Python with one of the following commands. Windows:
python.exe
Linux:
./python3.7
5) Import the 'nuke' module, by executing the following:
import nuke
Expected behaviour No errors should be returned when importing the 'nuke' module.
Actual behaviour A preferences warning appears when importing the 'nuke' module in Python.
Warning: Warning: preferences are only used in GUI mode
Workaround Unknown.
Reproduced by support This bug has been reproduced in: Nuke 13.2v5 - Windows 10 - Linux CentOS 7 Nuke 13.2v1 - Windows 10 - Linux CentOS 7 - Regression
Unable to reproduce bug in: 13.1v5 - Windows 10 - Linux CentOS 7
Earliest version tested Nuke 13.1v5 - This issue doesn't appear in this version and has regressed