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

Python and python framework

Moderator: leecollings

Post Reply
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

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

Post 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..
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest