[Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Akrobate
Posts: 6
Joined: Thu Jun 02, 2022 8:04 pm

[Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

Post by Akrobate » Tue Aug 09, 2022 1:14 pm

Hello,

I would like to know why on the last release there is no more

sys.implementation.mpy available?

On 1.18 I was able to import the sys and then just print:

sys.implementation.mpy & 0xff

What has changed on 1.19.1 and how can I fix this problem?

Thank you
Last edited by Akrobate on Tue Aug 09, 2022 10:21 pm, edited 2 times in total.

Akrobate
Posts: 6
Joined: Thu Jun 02, 2022 8:04 pm

Re: Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

Post by Akrobate » Tue Aug 09, 2022 10:20 pm

Ok I have found the answer.

Maybe it could be usefull for some one, so the sollution is really simple:

the .mpy attribute has changed in 1.19 so now it is _mpy

this works:

sys.implementation._mpy & 0xff
6

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: [Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

Post by jimmo » Thu Aug 11, 2022 1:18 am

Yes, we realised that to be compatible with CPython, our "extended" attributes needed to have a leading underscore.

Post Reply