Re: Axiom patch for MSW makes examples work
Jean-Paul Calderone <[email protected]> Wed, 20 Feb 2008 09:01:55 -0500
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <20080220140155.6859.754061194.divmod.quotient.11227@ohm> |
On Wed, 20 Feb 2008 09:10:25 +0100, Werner Thie <[email protected]> wrote: >Hi > >Just plowing ahead in a database minefield I got curious by your discussion >and gave axiom a quick try (on MSW, as I usually do). > >Too bad that the examples fail, but could you please apply the the fix for >making it work on MSW (there is no package pysqlite2): > >11c11,14 >< from pysqlite2 import dbapi2 >--- > > try: > > from sqlite3 import dbapi2 > > except ImportError: > > from pysqlite2 import dbapi2 > PySQLite2 is a third-party package. You can install it for Windows. "sqlite3" is only available in Python 2.5 and newer as part of the stdlib. So this isn't a platform issue. I'm not sure if the stdlib version of SQLite actually works with Axiom (because I haven't tested it) so it might be better to install the third-party package. Jean-Paul