Hello,
I was checking sqlite3 module from here: https://github.com/micropython/micropyt ... er/sqlite3
I imported ffilib library from here: https://github.com/micropython/micropyt ... /ffilib.py
Now, when I'm running "import sqlite3", I'm getting this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//sqlite3.py", line 7, in <module>
AttributeError: 'NoneType' object has no attribute 'func'
Please check.
Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
Re: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
Line 7 calls func on sq3, which is set to ffilib.open("libsqlite3"). The means that ffilib.open("libsqlite3") is returning None whereas it shouldn't be, as I understand it. In open's definition, the first way it can return None is if ffi isn't imported. Could you check if ffi gets imported?
Code: Select all
AttributeError: 'NoneType' object has no attribute 'func'
Re: Sqlite3 throwing: AttributeError: 'NoneType' object has no attribute 'func'
There is no module as ffi. I'm using csv instead of sqlite now.