I try to learn SQL and I do that with Python 3.2. I know that SQLite3 module is installed with Python, but when I try to do this code:
import sqlite3
conn = sqlite3.connect('example.db')
I got this error: Undefined variable from import: connect
I have checked In usr/lib and the .so file is there..
What can I do to solve that ?
Regards,
I think you're using pydev.
Try it in non-pydev environ.
>>> import sqlite3
>>> conn = sqlite3.connect('example.db')
UPDATE: The actual fix for this problem is given in the following link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With