a problem with thonny or µPython???

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
BL007
Posts: 16
Joined: Wed Sep 02, 2020 6:38 am

a problem with thonny or µPython???

Post by BL007 » Wed Nov 04, 2020 6:44 pm

Hello,

I want open a file. This file is r.a.120kB. Because I have a ESP with 8/4MB SPI-RAM. I open the file, read it with readlines(), determinate the numbers of lines and show that in the shell. SC1

All in butter.

Maby a half minutes later the completly content of the variabe lines/file appears in the shell. The ESP hangs up(I must reset him) and the Thonny is 1 minute blocked. SC2

I suspect this is related to the size of the variable. Or ist his a problem of Thonny?
Attachments
SC2.jpg
SC2.jpg (282.88 KiB) Viewed 1867 times
SC1.jpg
SC1.jpg (53.87 KiB) Viewed 1867 times

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: a problem with thonny or µPython???

Post by aivarannamaa » Thu Nov 05, 2020 8:24 am

This is probably Thonny's fault. Please try https://github.com/thonny/thonny/releases/tag/v3.3.0b7, which shortens the repr-s of the values for the variable browser.

Actually, before you upgrade, please try whether you experience the same problem if you close the variable browser.
Aivar Annamaa
https://thonny.org

BL007
Posts: 16
Joined: Wed Sep 02, 2020 6:38 am

Re: a problem with thonny or µPython???

Post by BL007 » Fri Nov 06, 2020 10:33 am

Thank you very mutch!
If you are in Thuringia the next time, I owe you:
Attachments
BierBratwurst.jpg
BierBratwurst.jpg (258.15 KiB) Viewed 1797 times

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: a problem with thonny or µPython???

Post by aivarannamaa » Fri Nov 06, 2020 12:25 pm

BL007 wrote:
Fri Nov 06, 2020 10:33 am
If you are in Thuringia the next time, I owe you:
Wow! I'll keep this in mind :)
Aivar Annamaa
https://thonny.org

Post Reply