Created attachment 547340 [details, diff] patch for Python 3.7 Python_3.7 has changed its API, function PyUnicode_AsUTF8 returns a const char* pointer while Python_3.6 returned a char* pointer. The attached patch is an ugly work-around (const_cast). The real fix should be provided by upstreams.