Skip to content

Python 3.12 deprecation warning #3203

@BsAtHome

Description

@BsAtHome

The follwing warning is produced when compiling with python 3.12:
emc/pythonplugin/python_plugin.cc:329 col 3: warning: ‘Py_UnbufferedStdioFlag’ is deprecated [-Wdeprecated-declarations]

The python documentation states:
int Py_UnbufferedStdioFlag
This API is kept for backward compatibility: setting PyConfig.buffered_stdio should be used instead, see Python Initialization Configuration.
Force the stdout and stderr streams to be unbuffered.
Set by the -u option and the PYTHONUNBUFFERED environment variable.
Deprecated since version 3.12, will be removed in version 3.14.

I am no python expert and especially not versed in how it is integrated in LinuxCNC. Can someone who knows about this suggest a fix?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions