@@ -198,11 +198,11 @@ def check_config():
198
198
199
199
try :
200
200
output = subprocess .check_output (
201
- [arduino_cli , "version" ], stderr = subprocess .DEVNULL ,
201
+ [arduino_cli , "version" ], stderr = subprocess .STDOUT ,
202
202
)
203
203
except subprocess .CalledProcessError as e :
204
204
print ('"' + " " .join (e .cmd ) + '" failed with code: {}!' .format (e .returncode ))
205
- print (e .stdout )
205
+ print (e .stdout . decode ( "utf-8" ) )
206
206
quit (e .returncode )
207
207
else :
208
208
res = re .match (r".*Version:\s+(\d+\.\d+\.\d+).*" , output .decode ("utf-8" ))
@@ -218,11 +218,11 @@ def check_config():
218
218
try :
219
219
output = subprocess .check_output (
220
220
[arduino_cli , "core" , "search" , "stm32" , "--additional-urls" , stm32_url ],
221
- stderr = subprocess .DEVNULL ,
221
+ stderr = subprocess .STDOUT ,
222
222
)
223
223
except subprocess .CalledProcessError as e :
224
224
print ('"' + " " .join (e .cmd ) + '" failed with code: {}!' .format (e .returncode ))
225
- print (e .stdout )
225
+ print (e .stdout . decode ( "utf-8" ) )
226
226
quit (e .returncode )
227
227
else :
228
228
if arduino_platform not in output .decode ("utf-8" ):
@@ -232,13 +232,13 @@ def check_config():
232
232
try :
233
233
output = subprocess .check_output (
234
234
[arduino_cli , "config" , "dump" , "--format" , "json" ],
235
- stderr = subprocess .DEVNULL ,
235
+ stderr = subprocess .STDOUT ,
236
236
).decode ("utf-8" )
237
237
except subprocess .CalledProcessError as e :
238
238
print (
239
239
'"' + " " .join (e .cmd ) + '" failed with code: {}!' .format (e .returncode )
240
240
)
241
- print (e .stdout )
241
+ print (e .stdout . decode ( "utf-8" ) )
242
242
quit (e .returncode )
243
243
else :
244
244
cli_config = json .loads (output )
@@ -465,7 +465,7 @@ def find_board():
465
465
).decode ("utf-8" )
466
466
except subprocess .CalledProcessError as e :
467
467
print ('"' + " " .join (e .cmd ) + '" failed with code: {}!' .format (e .returncode ))
468
- print (e .stdout )
468
+ print (e .stdout . decode ( "utf-8" ) )
469
469
quit (e .returncode )
470
470
else :
471
471
boards_list = json .loads (output )
@@ -488,7 +488,7 @@ def find_board():
488
488
print (
489
489
'"' + " " .join (e .cmd ) + '" failed with code: {}!' .format (e .returncode )
490
490
)
491
- print (e .stdout )
491
+ print (e .stdout . decode ( "utf-8" ) )
492
492
quit (e .returncode )
493
493
else :
494
494
board_detail = json .loads (output )
0 commit comments