Page 1 of 1

not work upip.install("micropython-sqlite3")

Posted: Tue May 21, 2019 6:11 pm
by mehdi_ziyaei
i want to use database in nodemcu ESP8266
i want install sqlite or mysql lib to my nodemcu

i'm use code :
import upip
upip.install("micropython-sqlite3")



but after a one hour in my nodemcu :
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== import upip
=== upip.install("micropython-sqlite3")
===
Installing to: /lib/





------------------------------------------
https://imgur.com/cBTnHp4


i want use sqlite or mysql on nodemcu.how use ? how install lib ? how how how ?? tnx

Re: not work upip.install("micropython-sqlite3")

Posted: Tue May 21, 2019 6:20 pm
by Roberthh
micropython-sqlite3 will not work on the nodemcu. It is made for the Linux version of Micropython and requires libsqlite3.

Re: not work upip.install("micropython-sqlite3")

Posted: Tue May 21, 2019 6:29 pm
by mehdi_ziyaei
hi
What is your offer? What method do I use? To access the database.

Re: not work upip.install("micropython-sqlite3")

Posted: Tue May 21, 2019 6:35 pm
by Roberthh
The standard firmware of the ESP8266 include a small database called btree. Please consult the internet and the documentation on how to use that. Maybe it suits your needs.

Re: not work upip.install("micropython-sqlite3")

Posted: Tue May 21, 2019 6:43 pm
by mehdi_ziyaei
tnx for your comment .
but btree is not usefull for me .
i want to use mysql or sqlite .
Which operating system for this device supports these databases libs?

Re: not work upip.install("micropython-sqlite3")

Posted: Tue May 21, 2019 6:49 pm
by Roberthh
I do not know, and my expectation is, that there is none. There is even no operating system for the ESP8266 besides the RTOS, which is used by MicroPython. But that is not OS like Linux or the like. If you need an operating system and software like sqlite3, better use the RPI class of device.