tom321
tom321

Reputation: 1

why is this showing up?

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-b7eb239f86a7> in <module>
      1 # Initialize path to SQLite database
      2 path = 'data/classic_rock.db'
----> 3 con = sq3.Connection(path)
      4 
      5 

NameError: name 'sq3' is not defined

Upvotes: -2

Views: 160

Answers (2)

Batman
Batman

Reputation: 702

'sq3' is not defined

That's why. Somewhere in your code you're expecting a variable called sql3 but it doesn't exist.

Upvotes: 0

griffin_cosgrove
griffin_cosgrove

Reputation: 447

It looks like from the traceback that you are attempting to use sq3 and you either did not import the library or did not correctly alias the library in question. Cannot know for sure without your code though.

Upvotes: 1

Related Questions