-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/20/2010 08:33 AM, Chris Wolf wrote:
> I tried building your APSW wrapper.  It built fine, but running "python
> setup.py test" failed:
> 
> ERROR: Verify VFS functionality
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/cwolf/src/apsw-3.6.23.1-r1/tests.py", line 3526, in testVFS
>     vfs=ObfuscatedVFS()
>   File "/Users/cwolf/src/apsw-3.6.23.1-r1/tests.py", line 3521, in __init__
>     apsw.VFS.__init__(self, self.vfsname, self.basevfs)
> ValueError: Base vfs implements version 2 of vfs spec, but apsw only
> supports version 1
> 
> I am building apsw-3.6.23.1-r1  against sqlite3-3.7.3 (amalgamation
> pulled down via fetch) on MacOS 10.5.
> 
> Does this mean I won't be able to do virtual table from Python?

The failing test is for VFS functionality which deals with SQLite's
interface to the underlying operating system - eg file read and write(*).
It has no effect on support for virtual tables which will work fine with any
combination of APSW and SQLite after they introduced virtual tables.

In any event you are using APSW from the beginning of April which predates
SQLite introducing version 2 VFS.  Try a more recent APSW:

  http://code.google.com/p/apsw/

Unfortunately Google's left and right hands have issues talking to each
other so searching for APSW documentation brings up old pages from a Google
code site I can't delete and ignores the more recent documentation also on
Google code.  The links from the page above are however correct.

(*) And in particular the issue is with functionality in APSW that lets you
"inherit" from an existing VFS such as if you wanted to augment or override
a few methods rather than write an entire one from scratch.  When doing this
it is a requirement that the VFS API versions match hence the message.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzoAy8ACgkQmOOfHg372QSCYwCeKjU0JeBJ5/6jhk/h1Z7tnzt5
HEYAoMSklYJ7Hyr0ZnNBoNHuOhTa25RH
=ReHP
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to