Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 deprecation warning #3203

Open
BsAtHome opened this issue Dec 1, 2024 · 0 comments
Open

Python 3.12 deprecation warning #3203

BsAtHome opened this issue Dec 1, 2024 · 0 comments
Assignees

Comments

@BsAtHome
Copy link
Contributor

BsAtHome commented Dec 1, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants