how install picoweb on ESP32?
how install picoweb on ESP32?
Hello,
I have a ESP32 Espressif dev kit V4 and flashed with the last firmware here
https://micropython.org/resources/firmw ... 8611c8.bin
My ESP is connected to wifi and Internet acces, oll ok.
But When I want to install Picoweb, I have an error?
upip.install('picoweb')
Installing to: /lib/
mbedtls_ssl_handshake error: -71
Error installing 'picoweb': [Errno 5] EIO, packages may be partially installed
COuld you help me please to install picoweb on esp32.
Very thanks
Julien
I have a ESP32 Espressif dev kit V4 and flashed with the last firmware here
https://micropython.org/resources/firmw ... 8611c8.bin
My ESP is connected to wifi and Internet acces, oll ok.
But When I want to install Picoweb, I have an error?
upip.install('picoweb')
Installing to: /lib/
mbedtls_ssl_handshake error: -71
Error installing 'picoweb': [Errno 5] EIO, packages may be partially installed
COuld you help me please to install picoweb on esp32.
Very thanks
Julien
Re: how install picoweb on ESP32?
It sounds like you may be running into an issue with the IDF memory fragmentation (this usually manifests as an issue with SSL buffers).
Which module do you have on the dev kit board? Is it a WROOM or WROVER? (It should be one of the ones from the list at https://docs.espressif.com/projects/esp ... vkitc.html)
To address this, probably my first suggestion is to try using the v1.11 firmware -- esp32-idf3-20190529-v1.11.bin
If your module is a WROVER (not WROOM), then try using the GENERIC-SPIRAM firmware instead (any version).
Which module do you have on the dev kit board? Is it a WROOM or WROVER? (It should be one of the ones from the list at https://docs.espressif.com/projects/esp ... vkitc.html)
To address this, probably my first suggestion is to try using the v1.11 firmware -- esp32-idf3-20190529-v1.11.bin
If your module is a WROVER (not WROOM), then try using the GENERIC-SPIRAM firmware instead (any version).
Re: how install picoweb on ESP32?
71 is in hex, that's 113 in dec, that's MP_EHOSTUNREACH
please upvote https://github.com/micropython/micropython/pull/5819 !
please upvote https://github.com/micropython/micropython/pull/5819 !
Re: how install picoweb on ESP32?
Hello,
very thanks.
I have a wroom 32D.
I upload the firmware
http://micropython.org/resources/firmwa ... -v1.11.bin
I use
import upip
upip.install('picoweb')
And here the issue
Installing to: /lib/
Warning: micropython.org SSL certificate is not validated
Installing picoweb 1.8.1 from https://files.pythonhosted.org/packages ... 8.1.tar.gz
Installing pycopy-uasyncio 3.6 from https://files.pythonhosted.org/packages ... 3.6.tar.gz
Installing pycopy-pkg_resources 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-uasyncio.core 2.3.2 from https://files.pythonhosted.org/packages ... 3.2.tar.gz
Traceback (most recent call last):
File "<stdin>", line 49, in <module>
File "/lib/picoweb/__init__.py", line 297, in run
ImportError: no module named 'ulogging'
So seconde method
I use
import upip
upip.install('pycopy-ulogging')
upip.install('picoweb')
And here another issue
Installing to: /lib/
Installing pycopy-ulogging 0.3 from https://files.pythonhosted.org/packages ... 0.3.tar.gz
Installing to: /lib/
Installing picoweb 1.8.1 from https://files.pythonhosted.org/packages ... 8.1.tar.gz
Installing pycopy-uasyncio 3.6 from https://files.pythonhosted.org/packages ... 3.6.tar.gz
Installing pycopy-pkg_resources 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-uasyncio.core 2.3.2 from https://files.pythonhosted.org/packages ... 3.2.tar.gz
* Running on http://192.168.1.33:8081/
Traceback (most recent call last):
File "<stdin>", line 49, in <module>
File "/lib/picoweb/__init__.py", line 311, in run
File "/lib/picoweb/__init__.py", line 293, in serve
File "/lib/uasyncio/core.py", line 163, in run_forever
File "/lib/uasyncio/core.py", line 129, in run_forever
File "/lib/uasyncio/__init__.py", line 33, in add_reader
TypeError: function expected at most 3 arguments, got 4
Thanks to help me to install picoweb on esp32.
Regards.
JL
very thanks.
I have a wroom 32D.
I upload the firmware
http://micropython.org/resources/firmwa ... -v1.11.bin
I use
import upip
upip.install('picoweb')
And here the issue
Installing to: /lib/
Warning: micropython.org SSL certificate is not validated
Installing picoweb 1.8.1 from https://files.pythonhosted.org/packages ... 8.1.tar.gz
Installing pycopy-uasyncio 3.6 from https://files.pythonhosted.org/packages ... 3.6.tar.gz
Installing pycopy-pkg_resources 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-uasyncio.core 2.3.2 from https://files.pythonhosted.org/packages ... 3.2.tar.gz
Traceback (most recent call last):
File "<stdin>", line 49, in <module>
File "/lib/picoweb/__init__.py", line 297, in run
ImportError: no module named 'ulogging'
So seconde method
I use
import upip
upip.install('pycopy-ulogging')
upip.install('picoweb')
And here another issue
Installing to: /lib/
Installing pycopy-ulogging 0.3 from https://files.pythonhosted.org/packages ... 0.3.tar.gz
Installing to: /lib/
Installing picoweb 1.8.1 from https://files.pythonhosted.org/packages ... 8.1.tar.gz
Installing pycopy-uasyncio 3.6 from https://files.pythonhosted.org/packages ... 3.6.tar.gz
Installing pycopy-pkg_resources 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-uasyncio.core 2.3.2 from https://files.pythonhosted.org/packages ... 3.2.tar.gz
* Running on http://192.168.1.33:8081/
Traceback (most recent call last):
File "<stdin>", line 49, in <module>
File "/lib/picoweb/__init__.py", line 311, in run
File "/lib/picoweb/__init__.py", line 293, in serve
File "/lib/uasyncio/core.py", line 163, in run_forever
File "/lib/uasyncio/core.py", line 129, in run_forever
File "/lib/uasyncio/__init__.py", line 33, in add_reader
TypeError: function expected at most 3 arguments, got 4
Thanks to help me to install picoweb on esp32.
Regards.
JL
Re: how install picoweb on ESP32?
Hello,
I even try this, but, issue, error 112?
Installing to: /lib/
Installing pycopy-logging 0.6.2 from https://files.pythonhosted.org/packages ... 6.2.tar.gz
Installing pycopy-os 0.9.1 from https://files.pythonhosted.org/packages ... 9.1.tar.gz
Installing pycopy-ffilib 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-errno 0.1.4 from https://files.pythonhosted.org/packages ... 1.4.tar.gz
Installing pycopy-stat 0.5.1 from https://files.pythonhosted.org/packages ... 5.1.tar.gz
Installing pycopy-os.path 0.2.2 from https://files.pythonhosted.org/packages ... 2.2.tar.gz
Installing to: /lib/
Installing utemplate 1.3.1 from https://files.pythonhosted.org/packages ... 3.1.tar.gz
Installing to: /lib/
Installing picoweb 1.8.1 from https://files.pythonhosted.org/packages ... 8.1.tar.gz
Installing pycopy-uasyncio 3.6 from https://files.pythonhosted.org/packages ... 3.6.tar.gz
Installing pycopy-pkg_resources 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-uasyncio.core 2.3.2 from https://files.pythonhosted.org/packages ... 3.2.tar.gz
Traceback (most recent call last):
File "<stdin>", line 50, in <module>
File "/lib/picoweb/__init__.py", line 311, in run
File "/lib/picoweb/__init__.py", line 293, in serve
File "/lib/uasyncio/core.py", line 163, in run_forever
File "/lib/uasyncio/core.py", line 116, in run_forever
File "/lib/uasyncio/__init__.py", line 267, in start_server
File "/lib/uasyncio/__init__.py", line 246, in start_server
OSError: 112
thanks to help me please to install picoweb on esp32 wroom 32D.
regards.
JL
I even try this, but, issue, error 112?
Installing to: /lib/
Installing pycopy-logging 0.6.2 from https://files.pythonhosted.org/packages ... 6.2.tar.gz
Installing pycopy-os 0.9.1 from https://files.pythonhosted.org/packages ... 9.1.tar.gz
Installing pycopy-ffilib 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-errno 0.1.4 from https://files.pythonhosted.org/packages ... 1.4.tar.gz
Installing pycopy-stat 0.5.1 from https://files.pythonhosted.org/packages ... 5.1.tar.gz
Installing pycopy-os.path 0.2.2 from https://files.pythonhosted.org/packages ... 2.2.tar.gz
Installing to: /lib/
Installing utemplate 1.3.1 from https://files.pythonhosted.org/packages ... 3.1.tar.gz
Installing to: /lib/
Installing picoweb 1.8.1 from https://files.pythonhosted.org/packages ... 8.1.tar.gz
Installing pycopy-uasyncio 3.6 from https://files.pythonhosted.org/packages ... 3.6.tar.gz
Installing pycopy-pkg_resources 0.2.1 from https://files.pythonhosted.org/packages ... 2.1.tar.gz
Installing pycopy-uasyncio.core 2.3.2 from https://files.pythonhosted.org/packages ... 3.2.tar.gz
Traceback (most recent call last):
File "<stdin>", line 50, in <module>
File "/lib/picoweb/__init__.py", line 311, in run
File "/lib/picoweb/__init__.py", line 293, in serve
File "/lib/uasyncio/core.py", line 163, in run_forever
File "/lib/uasyncio/core.py", line 116, in run_forever
File "/lib/uasyncio/__init__.py", line 267, in start_server
File "/lib/uasyncio/__init__.py", line 246, in start_server
OSError: 112
thanks to help me please to install picoweb on esp32 wroom 32D.
regards.
JL
Re: how install picoweb on ESP32?
Hello,
I think I am making a mistake. Picoweb does not seem to work with Micropython. You have to use Pycopy. But the concern is that I don't see a doc explaining how to use pycopy with an IDE, and which IDE? and then how to flash the card and upload a program in python in the ESP32 as is very easily possible with thonny and picropython. If you have an idea.
Thank you.
JL
I think I am making a mistake. Picoweb does not seem to work with Micropython. You have to use Pycopy. But the concern is that I don't see a doc explaining how to use pycopy with an IDE, and which IDE? and then how to flash the card and upload a program in python in the ESP32 as is very easily possible with thonny and picropython. If you have an idea.
Thank you.
JL
-
- Posts: 9
- Joined: Sat Mar 28, 2020 4:56 pm
Re: how install picoweb on ESP32?
One way to get Picoweb running is to manually create a picoweb directory on the filesystem (uos.mkdir('picoweb')), copy or use urequests to pull the sources in to that directory. Go to the github repo and pull the latest from master. You may want to upip install micropython-pkg_resources and micropython-ulogging. Or go through the picoweb resources and remove all the code that requires those modules.
Re: how install picoweb on ESP32?
Hello,
thanks, but how to copy or use urequests to pull the sources in to that directory. Go to the github repo and pull the latest from master.
could you be very precise and give me the comment to write in repl.
thanks
JL
thanks, but how to copy or use urequests to pull the sources in to that directory. Go to the github repo and pull the latest from master.
could you be very precise and give me the comment to write in repl.
thanks
JL
Re: how install picoweb on ESP32?
So upip.install('picoweb') doesn't works?
Re: how install picoweb on ESP32?
I managed to create the folder and change the directory to picoweb. But how to copy the files into the folder picoweb?
Thanks
Thanks