diff -r 4582f0fcf4c4 -r 46f3ca3f0157 opc_ua/client.py --- a/opc_ua/client.py Wed May 31 23:16:29 2023 +0200 +++ b/opc_ua/client.py Sun Jun 18 16:28:42 2023 +0200 @@ -142,7 +142,7 @@ c_code = '#include "beremiz.h"\n' c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig()) - with open(c_path, 'wb') as c_file: + with open(c_path, 'w') as c_file: c_file.write(c_code) LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']