AttributeError: 'StreamReader' object has no attribute 'readinto'

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
jedie
Posts: 99
Joined: Fri Jan 29, 2016 12:32 pm

AttributeError: 'StreamReader' object has no attribute 'readinto'

Post by jedie » Sun Dec 01, 2019 10:42 am

Seems that uasyncio.StreamReader has no readinto() method. (microPython v1.11 on ESP8266)

Any work-a-round?!?

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

Re: AttributeError: 'StreamReader' object has no attribute 'readinto'

Post by jimmo » Sun Dec 01, 2019 10:52 am

Not at the moment, but you might be able to add it yourself?

FYI, there's a new version of uasyncio that will hopefully be merged soon but you can see it at https://github.com/micropython/micropython/pull/5332

User avatar
pythoncoder
Posts: 3719
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: AttributeError: 'StreamReader' object has no attribute 'readinto'

Post by pythoncoder » Sun Dec 01, 2019 11:07 am

The fast_io version in this repo has this method.
Peter Hinch

jedie
Posts: 99
Joined: Fri Jan 29, 2016 12:32 pm

Re: AttributeError: 'StreamReader' object has no attribute 'readinto'

Post by jedie » Sun Dec 01, 2019 4:30 pm

jimmo wrote:
Sun Dec 01, 2019 10:52 am
Not at the moment, but you might be able to add it yourself?
I have no idea to implement this.
jimmo wrote:
Sun Dec 01, 2019 10:52 am
FYI, there's a new version of uasyncio that will hopefully be merged soon but you can see it at https://github.com/micropython/micropython/pull/5332
I have already seen the pull request. I hope it will be merged and released soon.

Post Reply