Closed SubaruArai closed 3 years ago
Hi @SubaruArai ! This problem was already resolved some time ago, but the changes wasn't mirrored in this repository. Have you bumped into any issues with Python 3.9 lately?
@valeros Thank you, I didn't expect such a fast response!
Yes, I did encounter it. Here are my environments:
Here are my steps to reproduce:
or, after the generation:
File "C:\Users\someone\.platformio\packages\framework-mbed\platformio\package_deps\py3\intelhex\compat.py", line 60:
array_tobytes = getattr(array.array, "tobytes", array.array.tostring)
That's strange, but I cannot reproduce the problem on Python 3.9.4. What version of the ststm32
platform is installed in your system? Could you please attach the entire log when you're trying to compile?
@valeros After your response I tried a few things and I think I found the root cause.
ststm32
version was quite old, 8.0.0
on both platforms that I tested, which seemed to be the root cause.
framework-mbed
tied was 6.60200.200722
, which contained the problem.ststm32
to 14.1.0
fixed it, pio run
showed using framework-mbed 6.60900.210318
.ststm32@14.1.0
.So, it was a problem of me using a too old library. My bad, and thank you for your fast response and patience!
the version of intelhex was too old.
issue: #22