From owner-freebsd-questions@FreeBSD.ORG Sat Mar 31 20:00:48 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8091106566C for ; Sat, 31 Mar 2012 20:00:48 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8236F8FC12 for ; Sat, 31 Mar 2012 20:00:48 +0000 (UTC) Received: by qafi31 with SMTP id i31so1293286qaf.15 for ; Sat, 31 Mar 2012 13:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3mn4vsKd4YxxOB9AzG8Cec/Yg70tmFODc77JBeMnoyQ=; b=03WkajjTE22XxhiuYFLsf6CF6YZfvBhGuhSx0/HbqwaX05xRkXOyD8kgoQ56V3oo76 /zOqpV0clS2pW7qHzg7o/NAqSB9M1oCv6AQHgk44XgCgKtaM7al/OoEoefchnIoMXIOD +Lz6g2uvt1Gg+De4D2HLuwtxWA4+UMQK1j64tcBsb+Qu+Gi70o1StVa42V/LoEH4hmnS aIxLSznVkpiyoWz3AsBGS1Pn82xFYvuMUoPLNEeW3wJXtRLnRK05RfBgW+zu73+J1Uo+ oFd4dB4H4bpJ9rxgOY7AtodfUaK1dZV0PPymslB4rMGjDtTMweib6Nuq25S0faFeL5J3 3Cxw== MIME-Version: 1.0 Received: by 10.224.31.84 with SMTP id x20mr4298008qac.63.1333224041662; Sat, 31 Mar 2012 13:00:41 -0700 (PDT) Received: by 10.229.73.197 with HTTP; Sat, 31 Mar 2012 13:00:41 -0700 (PDT) Date: Sat, 31 Mar 2012 14:00:41 -0600 Message-ID: From: Modulok To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Trouble installing py-sqlite3 port for python3.x X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2012 20:00:48 -0000 List, I'm *guessing* this is more of FreeBSD problem than a python one, so I'll a= sk on this list. I'm trying to import sqlite3 in python3.2 on FreeBSD 8.1-RELEASE and ran into trouble: $ python3.2 ... >>> import sqlite3 Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.2/sqlite3/__init__.py", line 23, in from sqlite3.dbapi2 import * File "/usr/local/lib/python3.2/sqlite3/dbapi2.py", line 26, in from _sqlite3 import * ImportError: No module named _sqlite3 I assumed I was missing some operating system dependent sqlite3 package. Wh= en I attempt to install the 'ports/databases/py-sqlite3' port, it worked but it installed it for python2.6. (Importing sqlite3 works in 2.6) There are no config options for this port to select a python version. Similarly there's = no sqlite3 related config options for the python3.2 port. I then tried to use the python specific install tool, 'pip-3.2' to install = the python module: # pip-3.2 install pysqlite Unfortunately, it fails: Downloading/unpacking pysqlite Real name of requirement pysqlite is pysqlite Downloading pysqlite-2.6.3.tar.gz (74Kb): 74Kb downloaded Running setup.py egg_info for package pysqlite Traceback (most recent call last): File "", line 14, in File "/usr/local/lib/python3.2/codecs.py", line 300, in decode (result, consumed) =3D self._buffer_decode(data, self.errors, f= inal) UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position= 98: invalid continuation byte Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 14, in File "/usr/local/lib/python3.2/codecs.py", line 300, in decode (result, consumed) =3D self._buffer_decode(data, self.errors, final= ) UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 98: invalid continuation byte ---------------------------------------- Command python setup.py egg_info failed with error code 1 Storing complete log in /root/.pip/pip.log The complete log file doesn't reveal much else. My environment doesn't cont= ain any python env var. I don't have any python config files overriding install locations or anything. My /etc/make.conf file contains no python variables.= I can display UTF-8 characters on the console just fine e.g: $ pytho3.2 ... >>> chr(0xe4) '=E4' Suggestions, thoughts, ideas? Thanks! -Modulok-