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

BTW there is a Python SQLite group maintained by the authors of both
popular Python SQLite extensions (disclaimer: I am one of them) at
https://groups.google.com/forum/#!forum/python-sqlite

On 26/10/11 13:28, Richard D Watkins wrote:
> Does anyone know if there is a way to "install" and use pysqlite by
> just copying the relevant files into an existing directory that
> contains other modules not related to pysqlite?

Yes, that can work.

> SystemError: dynamic module not initialized properly

The most likely cause is that you have copied from a different version of
Python.  If you are going to copy binary extensions then they need to be
between exactly the same versions of Python.  It is also important that
they used the same compilation options for the size of a Unicode codepoint
(some use 2 bytes, some 4).

To test you only need _sqlite.so, and try 'import _sqlite'.  Once that
works you can copy the remaining Python files and test suite over.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk6pX3EACgkQmOOfHg372QRuKgCeO8CcMcYy94RUHN2HEK/XHIz5
7Q0An2uyIbF/QsFOIbCGNq+jmUjYKudm
=tneq
-----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