Dear Sir,
I was trying “Send Sensor Readings via Email (IFTTT)” project for ESP8266 using micropython. I follwed the same procedure and same code as given by you. But I am getting the following error, when I upload, “boot.py”
Ready to download this file,please wait!
…………
download ok
exec(open(‘./boot.py’).read(),globals())
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “<string>”, line 4, in <module>
ImportError: no module named ‘urequests’
Regards
D. V. Apte
Further to the above message, when I upload BME280.py I got folllowing message
Ready to download this file,please wait!
………………………………………………………………………
download ok
exec(open(‘BME280.py’).read(),globals())
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
MemoryError: memory allocation failed, allocating 2816 bytes
Hi.
When you get the following message:
Ready to download this file,please wait! ……………………………………………………………………… download ok exec(open(‘BME280.py’).read(),globals()) Traceback (most recent call last): File “<stdin>”, line 1, in <module> MemoryError: memory allocation failed, allocating 2816 bytes
As long as you get the “download ok” message, the file was successfully saved to your board. The memory allocation is more like a warning rather than an error.
That file is a bit big, so the ESP8266 might run out of temporary memory. But as long as you see the “download ok” message, when it resets, it should have the complete file.
I’m not sure what happened to the urequest library. What’s the micropython distribution that you’re using?
I’ve tried the esp8266-20200911-v1.13 and didn’t get any error related with urequests.
However, I’ve found some people with the same issue here: https://forum.micropython.org/viewtopic.php?t=7212
I hope this helps.
Regards,
Sara