0

I am having a problem with this piece of code that produces the error below

import sqlite3

connection = sqlite3.connect('test.db')

Error:

Undefined variable from import: connect

I don't know what I am doing wrong since the code is almost completely identical to the sample in the documentation.

3
  • 2
    Is that the exact code snippet that was producing the error? When I tried it, I had no issues connecting. Commented Nov 16, 2016 at 22:15
  • @JakeConway . Yes. Commented Nov 16, 2016 at 22:58
  • 1
    Looks like this might help: stackoverflow.com/questions/27372479/… Commented Nov 17, 2016 at 5:09

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.