gjhiggins/rdflib — Issue #32: SQLite store plugin fails for stdlib
Author: gjhiggins
Created: 2011-10-19 01:00:31+00:00
State: open

Originally filed by azarot...@gmail.com on 2008-11-28T13:06:45

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