Results 1 to 4 of 4

Thread: SQLite dependency

  1. #1
    Join Date
    Jul 2008
    Posts
    4

    Default SQLite dependency

    Hi,

    I am trying to get the springpython tests to run on a Mac running OS X 10.4. This comes with Python 2.3 by default, so I have upgraded to 2.5 using the Mac ports system. I have also installed sqlite3 and py25-sqlite3. Unfortunately, this installs the module as sqlite3, and the tests fail. If I try to install the older py-sqlite port, it downloads and builds python2.4 and installs the sqlite module into the site-packages as pysqlite2. Neither of these will work with the tests as-is, as they name the module simply 'sqlite', which is not available with this name on Mac OS/X. There's a code snippet here:

    h t t p : / / www . devisland . net /help/pythonsqlite.shtml

    Which attempts to import sqlite portably in the face of these different versions, but that still doesn't take care of the the existing case where the module presumbly exists as 'sqlite' on the development platform, per the import statement in in src/springpython/database/factory.py and the comment in Sqlite.py in the same location.

    Tony.
    quis custodiet ipsos custodes? -- Juvenal VI, 347-8

  2. #2
    Join Date
    Aug 2006
    Posts
    382

    Default I'm making mods to factory.py right now

    I am working on getting the mods put in place to support this. I'll post an update here when I get the changes in.
    Greg L. Turnquist (@gregturn), SpringSource/VMware
    Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
    Listen to Pond Jumpers, the international podcast for open source developers.
    These comments are my own personal opinions, and do not reflect those of my company.

  3. #3
    Join Date
    Aug 2006
    Posts
    382

    Default trunk has the mods in it

    Tony,

    Try again, with an updated copy of the trunk. I got it to work trying sqlite3 first, and then falling back to sqlite should it not exist.
    Greg L. Turnquist (@gregturn), SpringSource/VMware
    Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
    Listen to Pond Jumpers, the international podcast for open source developers.
    These comments are my own personal opinions, and do not reflect those of my company.

  4. #4
    Join Date
    Aug 2006
    Posts
    382

    Default

    This was fixed to where Spring Python now uses sqlite3. springpython.database.factory.SqliteConnectionFact ory has been renamed Sqlite3ConnectionFactory. The depracated springpython.database.Sqlite.SqliteConnectionFacto ry was updated to support this.

    The changes are currently only visible on the trunk at https://fisheye.springframework.org/...ase/factory.py. If you check it out, the comment shows my personal test run, including a test coverage report.
    Greg L. Turnquist (@gregturn), SpringSource/VMware
    Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
    Listen to Pond Jumpers, the international podcast for open source developers.
    These comments are my own personal opinions, and do not reflect those of my company.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •