You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cc2538-bsl on Mac OS with python 3.7 provides the following errors:
"ERROR: string argument without an encoding"
This seems to be related to the handling of bytearrays in recent python versions. If I understand it correctly recent python version require the encoding to be explicitly stated in the bytearray function if the parameter is a string. This seems to be the case in the script. When providing an encoding (tried with 'utf8'), the error disappeared.
The text was updated successfully, but these errors were encountered:
I had this same issue, and I run through the cc2538-bsl.py code and found that the error it's on the byte array casting. But I found that I was running an old version and using the new version I had no problems. Seems that everything its good now.
ifhave_magic:
file_type=bytearray(magic.from_file(path, True))
## I just put the "utf-8" and worked for meifhave_magic:
file_type=bytearray(magic.from_file(path, True), "utf-8")
Running cc2538-bsl on Mac OS with python 3.7 provides the following errors:
"ERROR: string argument without an encoding"
This seems to be related to the handling of bytearrays in recent python versions. If I understand it correctly recent python version require the encoding to be explicitly stated in the bytearray function if the parameter is a string. This seems to be the case in the script. When providing an encoding (tried with 'utf8'), the error disappeared.
The text was updated successfully, but these errors were encountered: