Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2010 04:35:45 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        Sutra Zhou <zhoushuqun@gmail.com>
Cc:        wen heping <wenheping@gmail.com>, python@freebsd.org, Martin Wilke <miwi@freebsd.org>
Subject:   Re: python-2.7 released !
Message-ID:  <20100820203545.GA43046@FreeBSD.cs.nctu.edu.tw>
In-Reply-To: <AANLkTim86Vim7N-S7dGp%2Bbv8d%2BmETKnZ=q2afg5xueDc@mail.gmail.com>
References:  <AANLkTimsX59JLF47p3yFuE9nmzQoBqj5uXh0AHNkapbD@mail.gmail.com> <AANLkTim86Vim7N-S7dGp%2Bbv8d%2BmETKnZ=q2afg5xueDc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 20, 2010 at 15:39:31 +0800, Sutra Zhou wrote:
> After I installed python27, import sqlite3 failed:
>=20
> root@www:~%pkg_info -Ix py
> ap22-mod_python-3.3.1_3 Apache module that embeds the Python
> interpreter within the
> clearsilver-python-0.10.5 A fast, powerful, and language-neutral template=
 system
> py27-Genshi-0.6     Python toolkit for stream-based generation of output =
for th
> py27-docutils-0.7   Python Documentation Utilities
> py27-pygments-1.3.1 A syntax highlighter written in Python
> py27-pytz-2010k     World Timezone Definitions for Python
> py27-setuptools-0.6c11 Download, build, install, upgrade, and
> uninstall Python pac
> py27-sqlite3-2.7_1  Standard Python binding to the SQLite3 library
> py27-subversion-1.6.12_1 Python bindings for version control system
> py27-xlrd-0.7.1_1   Reading data and formatting information from Excel fi=
les
> python27-2.7.0      An interpreted object-oriented programming language
> root@www:~%python
> Python 2.7 (r27:82500, Aug 20 2010, 03:40:41)
> [GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sqlite3
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <modul=
e>
>     from dbapi2 import *
>   File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
>     from _sqlite3 import *
> ImportError: /usr/local/lib/python2.7/site-packages/_sqlite3.so:
> Undefined symbol "sqlite3_load_extension"
>=20
> Would you please tell me how to diagnose this problem?

At this point the best way is rebuilding your databases/sqlite3 with
EXTENSION option on, then rebuilding databases/py-sqlite3 .

I've filed a PR for turn this option default on:
http://www.freebsd.org/cgi/query-pr.cgi?pr=3D149842

Li-Wen

--=20
Li-Wen Hsu <lwhsu AT FreeBSD.org>
http://lwhsu.org

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAkxu5yEACgkQQWsOOSiXsiivCgCfeZKC8wFqFL2wyfsio9y2Io3H
WEYAn3lxM2m6FN7UvYKrGPhxCrhEir8Q
=pBBg
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100820203545.GA43046>