logo       

Re: Error, Undefined symbol "PyGILState_Ensure": msg#00039

python.db.pysqlite.user

Subject: Re: Error, Undefined symbol "PyGILState_Ensure"

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

nac wrote:
> Hello All,
>
> I would like to use pysqlite2 on rental FreeBSD(4.10-RELEASE-p16)
> Server. And I have no privilege on that server. Sqlite and
> pysqlite was not provided on the server, so I installed them
> under my home directory. It seems sqlite works properly. But when
> I run pysqlite I got this error:
>
> Python 2.4.2 (#2, Nov 14 2005, 12:00:29)
> [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>from pysqlite2 import dbapi2 as sqlite
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/home/my-account/usr/lib/python/pysqlite2/dbapi2.py", line 27, in ?
> from pysqlite2._sqlite import *
> ImportError: /home/my-account/usr/lib/python/pysqlite2/_sqlite.so: Undefined
> symbol "PyGILState_Ensure"
>
>
> What does mean this error? and how do I correct this error?
> If you need other information, please ask.

It looks like your Python was not built with threads enabled. There's an
option i nthe FreeBSD port that controls it. WITH_THREAD or WITH_THREADS or
some such.

pysqlite currently requires that Python is built with thread support.

- -- Gerhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEXS50dIO4ozGCH14RAgOjAKC7w7uCYgvqYVbPdD6CyBFSjDYpdwCfWXQJ
UvstqmC0KoiMcJhr+8CWIPk=
=4mlF
-----END PGP SIGNATURE-----


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise