From e45365ae2b5fdfb24a9828b5fbc415ffbcba4876 Mon Sep 17 00:00:00 2001 From: Lele Gaifax Date: Thu, 7 May 2015 01:21:47 +0200 Subject: [PATCH] Repost: Notmuch 0.20~rc1 --- 1b/e1d00f125f556669f51c859d35536a8dc1d02f | 101 ++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 1b/e1d00f125f556669f51c859d35536a8dc1d02f diff --git a/1b/e1d00f125f556669f51c859d35536a8dc1d02f b/1b/e1d00f125f556669f51c859d35536a8dc1d02f new file mode 100644 index 000000000..42e62d2dc --- /dev/null +++ b/1b/e1d00f125f556669f51c859d35536a8dc1d02f @@ -0,0 +1,101 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 26E356DE02CB + for ; Wed, 6 May 2015 16:22:18 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 1.429 +X-Spam-Level: * +X-Spam-Status: No, score=1.429 tagged_above=-999 required=5 tests=[AWL=0.267, + FSL_HELO_BARE_IP_2=1.539, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_NUMERIC_HELO=0.865, RP_MATCHES_RCVD=-0.55, SPF_HELO_PASS=-0.001, + SPF_PASS=-0.001, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 8oCvpdsg1CzL for ; + Wed, 6 May 2015 16:22:15 -0700 (PDT) +Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) + by arlo.cworth.org (Postfix) with ESMTPS id EC41F6DE01F5 + for ; Wed, 6 May 2015 16:22:14 -0700 (PDT) +Received: from list by plane.gmane.org with local (Exim 4.69) + (envelope-from ) id 1Yq8dj-0004uR-Gq + for notmuch@notmuchmail.org; Thu, 07 May 2015 01:22:07 +0200 +Received: from 151.62.96.5 ([151.62.96.5]) + by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Thu, 07 May 2015 01:22:07 +0200 +Received: from lele by 151.62.96.5 with local (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Thu, 07 May 2015 01:22:07 +0200 +X-Injected-Via-Gmane: http://gmane.org/ +To: notmuch@notmuchmail.org +From: Lele Gaifax +Subject: Repost: Notmuch 0.20~rc1 +Date: Thu, 07 May 2015 01:21:47 +0200 +Organization: Nautilus Entertainments +Lines: 38 +Message-ID: <877fslcmwk.fsf@nautilus.nautilus> +References: <70D1DC25-148E-425E-B1E9-4F2FFC9AFF1A@metapensiero.it> +Mime-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 8bit +X-Complaints-To: usenet@ger.gmane.org +X-Gmane-NNTP-Posting-Host: 151.62.96.5 +User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) +Cancel-Lock: sha1:SdizydiJspSXzrJZT7llGov0+A8= +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 06 May 2015 23:22:18 -0000 + +Hi all, + +I notice a small glitch in the latest version. Yesterday I upgraded my Debian +sid and got 0.20~rc1, and while it seems working great, my i3 status bar, +which displays the number of unread emails, didn't work anymore. + +A quick look revelead the reason: + + $ python3 status.py + Traceback (most recent call last): + File "status.py", line 11, in + from notmuch import Query + File "/usr/lib/python3/dist-packages/notmuch/__init__.py", line 54, in + from .database import Database + File "/usr/lib/python3/dist-packages/notmuch/database.py", line 24, in + from .globals import ( + File "/usr/lib/python3/dist-packages/notmuch/globals.py", line 21, in + from version import SOVERSION + ImportError: No module named 'version' + +The first lines of globals.py are: + + from ctypes import CDLL, Structure, POINTER + from version import SOVERSION + +but Python3 by default uses "absolute imports" (PEP0328) by default, so I +think that for compatibility between Python2 and Python3 that should read + + from ctypes import CDLL, Structure, POINTER + from notmuch.version import SOVERSION + +Manually tweaking that source fixed the problem for me. + +Thank you&bye, lele. +-- +nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri +real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. +lele@metapensiero.it | -- Fortunato Depero, 1929. + -- 2.26.2