micropython-wifimanager
micropython-wifimanager copied to clipboard
Can not install by upip
In just installed and connected ESP8266 4MB:
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.active(True)
#6 ets_task(4020f474, 28, 3fffa018, 10)
>>> sta_if.connect('xxx', 'xxx')
>>> sta_if.ifconfig()
('192.168.0.192', '255.255.255.0', '192.168.0.1', '213.46.172.37')
>>> import upip
>>> upip.install('micropython-wifimanager')
Installing to: /lib/
Warning: pypi.org SSL certificate is not validated
Installing micropython-wifimanager 0.3.3 from https://files.pythonhosted.org/packages/ab/bf/5f896441ca23c794fc7011f5429a04b44018a686789d592cf8d9911afd1a/micropython-wifimanager-0.3.3.tar.gz
Error installing 'micropython-wifimanager': [Errno 22] EINVAL, packages may be partially installed
>>>
Could be relevant, but I do not understand it :-)
>>> import gc
>>> gc.mem_free()
24112
>>> import micropython
>>> micropython.mem_info(1)
stack: 2128 out of 8192
GC: total: 35968, used: 12064, free: 23904
No. of 1-blocks: 90, 2-blocks: 21, max blk sz: 264, max free sz: 514
GC memory layout; from 3ffef550:
00000: MDLhhhMASDDhhDSB=BBBh===h====BBShh==BhB=BhBBBDhBBB=h=hh=hBh=hBhh
00400: =hB=BBBBh=h====h===h=h=h===ShShSh=======hShhh=T=hMDBD.h==...h=.B
00800: hTT.D.Dh==h==.BBBB=Bh==h===...hh=h===DBSB=BBBh==h===h===h====h==
00c00: =============================h=.h==h=Bh..h==h====h=...h=h=======
01000: ===========.........S..Lh...Lhh======........MD..BBBB..h===...h=
01400: ================================================================
01800: ================================================================
01c00: ================================================================
02000: ================................................................
02400: ......h=========================================================
02800: ================================================================
02c00: ================================================================
03000: ================================================================
03400: ==============..................................................
(7 lines all free)
05400: ................h=====..........................................
(6 lines all free)
07000: ..............................................................hT
(6 lines all free)
08c00: ........
Sorry I had notifications turned off somehow! That's curious, I will dig out an ESP8266 and try it.. usually this error means it has run out of memory, but this is a tiny project. The other possibility is you've done a bunch of stuff and need to reset the device to free up memory.
It could be also by some setting on gzip what by default requires buffer bigger than ESP8266 usually have.
Jan Pobořil https://honza.poboril.cz/
-
- 2019 v 10:49, Mitchell Currie [email protected]:
Sorry I had notifications turned off somehow! That's curious, I will dig out an ESP8266 and try it.. usually this error means it has run out of memory, but this is a tiny project. The other possibility is you've done a bunch of stuff and need to reset the device to free up memory.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I'm about to create a new minor release... I'll give it a check then. Should be using standard OSX zip parameters, but I'll see what the changes are possible.
I found info about this requirement (dictionary size in gzip) here: https://docs.micropython.org/en/latest/reference/packages.html#distribution-packages
- 2019 v 11:14, Mitchell Currie [email protected]:
I'm about to create a new minor release... I'll give it a check then. Should be using standard OSX zip parameters, but I'll see what the changes are possible.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mitchins/micropython-wifimanager/issues/1#issuecomment-460193919, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlfWOvxUnjpNf3QtbtqYLQdkKDAM1R_ks5vKAf3gaJpZM4YmgDq.
I've released 0.3.6 using the recommended bdist_upip thanks to your suggestion. Could you Kindly give it a try from PyPi
Currently my upip can not install anything and I do not know why. :-)
That's strange. It could be running out of memory. ESP8266 right? What micro python platform version as you
I tried it on Unix. And it seems the issue is for all packages, not only wifimanager.
Jan Pobořil https://honza.poboril.cz/
-
- 2019 v 3:24, Mitchell Currie [email protected]:
That's strange. It could be running out of memory. ESP8266 right? What micro python platform version as you
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Do this:
import network sta_if = network.WLAN(network.STA_IF) sta_if.active(True) sta_if.connect('xxx', 'xxx') sta_if.ifconfig() import upip upip.index_urls = ["https://test.pypi.org/pypi", "https://micropython.org/pi", "https://pypi.org/pypi"] upip.install('micropython-wifimanager')
Hope this helps.