Page 1 of 1

WARNING: Don't install Python 3.7, it won't work with Domoticz yet

Posted: Saturday 30 June 2018 4:20
by Dnpwwo
Python 3.7 was released on June 27th, 2018 but you should not use it yet because it will crash Domoticz.

Our friends at Python have helpfully changed the way initialisation works:
void PyEval_InitThreads()

Initialize and acquire the global interpreter lock. It should be called in the main thread before creating a second thread or engaging in any other thread operations such as PyEval_ReleaseThread(tstate). It is not needed before calling PyEval_SaveThread() or PyEval_RestoreThread().

This is a no-op when called for a second time.

Changed in version 3.7: This function is now called by Py_Initialize(), so you don’t have to call it yourself anymore.
the Python Plugin Framework is single threaded and has never initialised threading on purpose so them doing it for us is kinda annoying :x

Investigation in progress..