Page 1 of 1

ffi module Micropython ESP32

Posted: Tue Nov 06, 2018 10:39 am
by andermutu99
DearCommunity,

I am trying to use ffi module, but I get an import error:
import ffi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'ffi'
I have searched in MicroPyhton-lib for the ffi library but I didn't find anything. I need ffi because I want to use sqlite3.py library that needs ffilib.py and this one needs ffi.

Where can I find this file?

Thanks in advance.

Ander.

Re: ffi module Micropython ESP32

Posted: Tue Nov 06, 2018 3:30 pm
by dhylands
The ffi module isn't supported on the ESP32 port, only on the unix port.

Re: ffi module Micropython ESP32

Posted: Wed Nov 07, 2018 2:42 pm
by andermutu99
dhylands wrote:
Tue Nov 06, 2018 3:30 pm
The ffi module isn't supported on the ESP32 port, only on the unix port.
Thanks for your answer.

Assuming that ffi is not available for ESP32, is there any way to use databases in Micropython? I am really interested.

Thanks.

Re: ffi module Micropython ESP32

Posted: Wed Nov 07, 2018 4:16 pm
by loboris
I'm finishing the usqlite3 module implementation for my MicroPython port, based on this library.
It works great, I expect to commit it next week.

Re: ffi module Micropython ESP32

Posted: Thu Nov 08, 2018 8:49 am
by andermutu99
loboris wrote:
Wed Nov 07, 2018 4:16 pm
I'm finishing the usqlite3 module implementation for my MicroPython port, based on this library.
It works great, I expect to commit it next week.
Thank you Loboris;

When you launch it, please post in this topic. Fantastic job :D :D