Page 1 of 1

esp8266 + picoweb

Posted: Thu Dec 13, 2018 1:31 am
by andrequeiroz
help me please. How can I solve this?

1. Installing Micropython
---------------------------------------------------------------
lash_size=detect 0 esp8266-20180511-v1.9.4.bin
esptool.py v2.5.1
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:18:7b:15
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 604872 bytes to 394893...
Wrote 604872 bytes (394893 compressed) at 0x00000000 in 8.9 seconds (effective 542.6 kbit/s)...
Hash of data verified.

-----------------------------------------------------------------------
2. installing picoweb
-----------------------------------------------------------------------
>>> upip.install('picoweb')
Installing to: /lib/
Error installing 'picoweb': memory allocation failed, allocating 7592 bytes, packages may be partially installed

------------------------------------------------------------------------

Correct me: Lack of memory?

Re: esp8266 + picoweb

Posted: Thu Dec 13, 2018 4:56 pm
by pythoncoder
It looks like the package is too big to install with upip. You could try using micropip to download the files to a PC, then copy them to the ESP8266 using rshell or similar. Micropip may be found in this repo.

Re: esp8266 + picoweb

Posted: Fri Dec 14, 2018 7:19 pm
by andrequeiroz
Hi friend, thanks for the attention, and sorry for the beginner questions.
How should I install the micropip?

Re: esp8266 + picoweb

Posted: Sat Dec 15, 2018 9:26 am
by pythoncoder
Copy the file to your PC and run it under Python 3.2 or later as per the README file.