PythonEmbed - Duplicate timeout waiting for Python version output

Some users have reported intermitent errors, likely depending on machine load.
This commit is contained in:
Alejandro Martinez
2021-11-10 09:18:28 -03:00
parent 7ca84ecd3e
commit 0cfa1e7d49

View File

@@ -136,7 +136,7 @@ bool PythonEmbed::pythonInstalled(QString &pybin, QString &pypath, QString PYTHO
}
// wait for output, should be rapid
if (py.waitForReadyRead(2000)==false) {
if (py.waitForReadyRead(4000)==false) {
fprintf(stderr, "Didn't get output: %s\n", pythonbinary.toStdString().c_str());
py.terminate();
return false;