Hello everyone,

As it turns out, SQLite support in Pygr only works with Python 2.5 or
newer. However, the problem is not that the sqlite3 module is not
available for older versions of Python - it is that the external
package used a different module name and import style.

Fortunately, this can be fixed relatively easily. To begin with, instead
of

import sqlite3

one needs to use something like

try:
  import sqlite3 as sqlite
except:
  from pysqlite2 import dbapi2 as sqlite

and then use 'sqlite' rather than 'sqlite3' as module name. Then it's
just the matter of adding another entry to sqlgraph._schemaModuleDict 
with the same value as for sqlite3 but 'pysqlite2.dbapi2' as name - and
all 190 tests pass!

I have just posted a patch which introduces the aforementioned changes,
it can be found in comments of Issue 70, please let me know what you
think.

-- 
MS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to