From owner-freebsd-python@FreeBSD.ORG Sun Apr 21 03:45:45 2013 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7DB26F17 for ; Sun, 21 Apr 2013 03:45:45 +0000 (UTC) (envelope-from john@saltant.com) Received: from homiemail-a29.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by mx1.freebsd.org (Postfix) with ESMTP id 660DC21F for ; Sun, 21 Apr 2013 03:45:44 +0000 (UTC) Received: from homiemail-a29.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a29.g.dreamhost.com (Postfix) with ESMTP id 22C04674070 for ; Sat, 20 Apr 2013 20:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=saltant.com; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=saltant.com; bh=iJnv+ +2V/GH0vE8fR7yvIW4oyOA=; b=jUTW1dtyp8TOZxiB4Pm5rZfxwh51SPFldhPc+ 1nCUsb4bVfys0RPzNuy8KnwS0as4eZmJPWn14hWfUWB5C5ThPDw12NQ0jDKLnsOt VxzJlIahCWEbCwEjdQPaiSffb7ZfAhQ+DagcsLVHN7xfKUNUN38wgsQyFR6UfvUg v2B+5Q= Received: from imago.y.saltant.net (y.saltant.net [96.227.187.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: john@saltant.com) by homiemail-a29.g.dreamhost.com (Postfix) with ESMTPSA id DD856674059 for ; Sat, 20 Apr 2013 20:45:43 -0700 (PDT) Message-ID: <517360E7.1050805@saltant.com> Date: Sat, 20 Apr 2013 23:45:43 -0400 From: "John W. O'Brien" Organization: Saltant Solutions User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-python@freebsd.org Subject: Re: [CFT] math/py-pandas: Update to 0.11.0rc1 References: <51699935.3040300@saltant.com> In-Reply-To: <51699935.3040300@saltant.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Apr 2013 03:45:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks to y-p over at the pandas github project, I have isolated the root cause of both test failures. While I will continue to monitor the upcoming release, and contribute as it seems necessary, final resolution is now in upstream hands. This is a summary for the benefit of freebsd-python@. 1. pandas.tests.test_format TestDataFrameFormatting.test_to_string_repr_unicode The reason this test was failing due to some long-standing bad behavior in py-gtk that affects pandas via matplotlib when a GTK backend is in use. pandas uses sys.getdefaultencoding() to initialize its own 'display.encoding' option, which affects behaviors throughout pandas, and (in this case) in the pandas.core.format module. On import, the gtk module changes the default encoding, which should otherwise remain constant after python processes site.py. If pandas is imported and then gtk is imported, any code that depends on the value of the 'display.encoding' option may break. An operational work-around is to import gtk before importing pandas. Detecting and accommodating the breakage caused by py-gtk appears to be non-trivial, so the pandas devs would be right to elect not to implement it for the impending 0.11.0 release. 2. pandas.tests.test_index TestMultiIndex.test_legacy_pickle The problem here is that the files in the 0.11.0rc1 tarball have CRLF newlines, including a sample pickle file this test uses. There are no CRLFs in the main repo. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJRc2DmAAoJEBRzAKlhyP/FGWIIANrP+nIuumnKkpTElg3oEvJu B3LIBuJvVPiaFMssipu/SU4ZaHx1zKZL6gyY5Q/UfX8YIu1tfFQIMoZfUm8xx8iH +TyL3HacK3TauJnwtj3S7kIWfHM30+gmgMsbphnb9pngpXkRKfjSx0sk0WW98GA/ 6THgmCZpq5YGZWKyzMzaNSlTNGVvrGqnGdiJksVrIvQx8SB1/Js53ofiA/6Iype8 +ql//Mz5h2ysJ5GQiaFYyzUh5EhbtTy8VtaN2JXr6g9Ua6bqxXHjaJVHxOPIZPQ4 4CiaH8qD7GCuHdMQ8EREp9zEaRTgIVQoKGFGNeMhZIMKChjeAAwUPlI5kBtNnvs= =wnkP -----END PGP SIGNATURE-----