RDFLib/rdflib — Issue #31: SQLite store plugin fails for stdlib
Author: gjhiggins
Created: 2012-02-20 08:30:54+00:00
State: open

azarot...@gmail.com, 2008-11-28T13:06:45.000Z

What steps will reproduce the problem?
1. Try to import the SQLite store plugin

What is the expected output? What do you see instead?
Expected to successfully import the store, instead complains that it can't
import pysqlite2, as the python standard library's name is sqlite3.

What version of the product are you using? On what operating system?
Python 2.5 and later, rdflib 2.4.0

Please provide any additional information below.

An easy fix.

In rdflib/store/SQLite.py:

try:
from pysqlite2 import dbapi2
except ImportError:
from sqlite3 import dbapi2

Comment 1 by eik...@gmail.com

Comment 2 by gsf747@gmail.com
Fixed in r1719.

Comment 3 by gsf747@gmail.com
This issue was closed by revision 8e7228dcacdb.