sqlite

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Azxphen Offline
Junior Member
Posts: 7
Joined: Mar 2011
Reputation: 0
Post: #1
this is driving me insane.

I get the following error:
Code:
ImportError: No module named sqlite3

When using:
Code:
from sqlite3 import dbapi2 as sqlite

It does exist, path in install is:
Code:
C:\Python27\Lib\sqlite3

Any idea what the issue could be? Every google just says make sure its there then add it if its not... but no one else has it and has import errors.
find quote
Azxphen Offline
Junior Member
Posts: 7
Joined: Mar 2011
Reputation: 0
Post: #2
solved.

Netbeans issue.
find quote
anarchintosh Offline
Fan
Posts: 550
Joined: Jul 2010
Reputation: 4
Post: #3
make sure you use this block:
PHP Code:
try:
    
from pysqlite2 import dbapi2 as sqlite
except
:
    
from sqlite3 import dbapi2 as sqlite 
otherwise no database stuff will work on certain platforms
find quote