New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upip throws error when trying to install umqtt library #3984
Comments
There was a recent change in the PyPi URL. However even with the latest version of MicroPython v1.9.4-409-g434975d-dirty on 2018-07-25; ESP module with ESP8266
Type "help()" for more information.
[connection lines omitted]
>>> import upip
>>> upip.install('micropython-umqtt.simple')
Installing to: /
Fatal exception 29(StoreProhibitedCause):
epc1=0x4026c578, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00001440, depc=0x00000000 There are two workrounds based on installing to a PC then copying the files to the target. If you have the Unix build of MicroPython issue: $ micropython -m upip install micropython-umqtt.simple Otherwise your can use micropip.py install -p rats micropython-umqtt.simple |
Thanks for the report, I can confirm that the ESP8266 will give this error when trying to install umqtt.simple. When I run the command the error is out-of-memory. The JSON data for the package is about 10k in size and the ESP8266 doesn't have enough RAM to load and parse the JSON.
@peterhinch I don't see any hard crash like this. If you do see such a crash again, can you please dump a bit of the assembler at where it crashed using |
I've rebuilt the firmware since seeing that crash and I can no longer replicate it: upip is working fine. |
I'm receiving similar error when running installation on NodeMCU ESP32 with latest >>> upip.install('micropython-umqtt.simple')
Installing to: /lib/
Warning: pypi.org SSL certificate is not validated
Installing micropython-umqtt.simple 1.3.4 from https://files.pythonhosted.org/packages/bd/cf/697e3418b2f44222b3e848078b1e33ee76aedca9b6c2430ca1b1aec1ce1d/micropython-umqtt.simple-1.3.4.tar.gz
mbedtls_ssl_handshake error: -71
Error installing 'micropython-umqtt.simple': [Errno 5] EIO, packages may be partially installed Is this error firmware related? |
Error -71 is |
hello everyone, have you fixed this problem in some way? im using this code with the A9G module: Import mqtt (download client if necessary)try: and receiving the same error: should i use aanother type of code or just reinstalling firmware of A9G? |
Hi @camp-easy this issue is very old and things have changed a lot since then. |
hi @andrewleech thank you for the info, could you please tell me what would the code with mip to replace my one with pip look like?? cause im not understanding well from your link... Thank you in advance for your support. |
There's some good advice here: https://www.tomshardware.com/how-to/raspberry-pi-pico-micropython-mip I haven't tried it myself but it should be like try:
from umqtt import simple
except ImportError:
import mip
mip.install("umqtt.simple")
from umqtt import simple |
ok thanks |
I'm using NodeMCU board with 4MB memory and have installed 1.9.4 version of firmware for ESP8266. When i tried to install
umqtt
package viaupip
it has thrown this error:and file
/lib/umqtt/simple.py
is empty.The text was updated successfully, but these errors were encountered: