This looks like a Python version issue. In the hosted version, you can switch versions in Document Settings.
Some more context in this thread.
This looks like a Python version issue. In the hosted version, you can switch versions in Document Settings.
Some more context in this thread.