ffi module Micropython ESP32

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
andermutu99
Posts: 18
Joined: Thu Sep 27, 2018 10:19 am

ffi module Micropython ESP32

Post by andermutu99 » Tue Nov 06, 2018 10:39 am

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.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: ffi module Micropython ESP32

Post by dhylands » Tue Nov 06, 2018 3:30 pm

The ffi module isn't supported on the ESP32 port, only on the unix port.

andermutu99
Posts: 18
Joined: Thu Sep 27, 2018 10:19 am

Re: ffi module Micropython ESP32

Post by andermutu99 » Wed Nov 07, 2018 2:42 pm

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.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: ffi module Micropython ESP32

Post by loboris » 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.

andermutu99
Posts: 18
Joined: Thu Sep 27, 2018 10:19 am

Re: ffi module Micropython ESP32

Post by andermutu99 » Thu Nov 08, 2018 8:49 am

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

Post Reply