From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 23AC66DE171C for ; Wed, 6 May 2015 08:26:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 oW19_cyXoOi3 for ; Wed, 6 May 2015 08:26:14 -0700 (PDT) X-Greylist: delayed 428 seconds by postgrey-1.35 at arlo; Wed, 06 May 2015 08:26:14 PDT Received: from mail.arstecnica.it (mail.arstecnica.it [144.76.81.238]) by arlo.cworth.org (Postfix) with ESMTP id 59B876DE13DC for ; Wed, 6 May 2015 08:26:14 -0700 (PDT) Received: from [10.19.34.122] (unknown [192.168.1.102]) by mail.arstecnica.it (Postfix) with ESMTPSA id ED28083E37C for ; Wed, 6 May 2015 15:18:58 +0000 (UTC) Received: from [10.19.34.122] ([151.18.140.88] helo=[10.19.34.122]) by assp.arstecnica.it with SMTP (2.3.3); 6 May 2015 15:18:57 +0000 User-Agent: K-9 Mail for Android MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----78IZKR4JZ1IK8TRGBS31FK54OBFO8I" Content-Transfer-Encoding: 7bit Subject: Bridge with gmane in trouble? From: Lele Gaifax Date: Wed, 06 May 2015 17:18:52 +0200 To: notmuch@notmuchmail.org Message-ID: <70D1DC25-148E-425E-B1E9-4F2FFC9AFF1A@metapensiero.it> X-Assp-Version: 2.3.3(14029) on assp.arstecnica.it X-Assp-ID: assp.arstecnica.it m1-25538-13321 X-Assp-Session: 155B13FC (mail 1) X-Assp-Envelope-From: lele@metapensiero.it X-Assp-Intended-For: notmuch@notmuchmail.org X-Assp-Server-TLS: yes X-Mailman-Approved-At: Wed, 06 May 2015 11:49:26 -0700 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 15:26:18 -0000 ------78IZKR4JZ1IK8TRGBS31FK54OBFO8I Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I tried twice to post a message thru the gmane=2Eorg NNTP bridge, but got = a "not allowed" error message back=2E=2E=2E This is not my first news messa= ge sent to this ML, so something must be out of order=2E=2E=2E Anyway, after an upgrade of my Debian sid computer I got version 0=2E20~rc= 1 installed; everything seems working great, except my i3 statusbar script:= it imports "notmuch=2Eglobals", which in turn does a " import local"=2E Th= e latter fails under Python 3, I had to change that to "import notmuch=2Elo= cal" because P3 defaults to absolute imports=2E Hope this gets thru, Thank you & bye, lele=2E -- Inviato dal mio cellulare Android con K-9 Mail=2E ------78IZKR4JZ1IK8TRGBS31FK54OBFO8I Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all,

I tried twice to post a message thru the gm= ane=2Eorg NNTP bridge, but got a "not allowed" error message = back=2E=2E=2E This is not my first news message sent to this ML, so somethi= ng must be out of order=2E=2E=2E

Anyway, after an upgrade of my Debian sid computer I got version 0=2E20~rc= 1 installed; everything seems working great, except my i3 statusbar script:= it imports "notmuch=2Eglobals", which in turn does a " impo= rt local"=2E The latter fails under Python 3, I had to change that to = "import notmuch=2Elocal" because P3 defaults to absolute imports= =2E

Hope this gets thru,
Thank you & bye, lele=2E


-- Inviato dal mio cellulare Android con K-9 Mail=2E ------78IZKR4JZ1IK8TRGBS31FK54OBFO8I-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A5BE56DE1649 for ; Fri, 8 May 2015 23:15:36 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.315 X-Spam-Level: X-Spam-Status: No, score=0.315 tagged_above=-999 required=5 tests=[AWL=0.305, 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 hivHekXoCqU9 for ; Fri, 8 May 2015 23:15:33 -0700 (PDT) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id 9B85D6DE1641 for ; Fri, 8 May 2015 23:15:33 -0700 (PDT) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1Yqy1n-0005ej-Do; Sat, 09 May 2015 06:14:23 +0000 Received: (nullmailer pid 24214 invoked by uid 1000); Sat, 09 May 2015 06:13:59 -0000 From: David Bremner To: Lele Gaifax , notmuch@notmuchmail.org Subject: [PATCH] python: use absolute import for SOVERSION Date: Sat, 9 May 2015 08:13:50 +0200 Message-Id: <1431152030-24171-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <877fslcmwk.fsf@nautilus.nautilus> References: <877fslcmwk.fsf@nautilus.nautilus> 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: Sat, 09 May 2015 06:15:36 -0000 Apparently python3 needs this. --- bindings/python/notmuch/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 4c49d51..70cfdc3 100644 --- a/bindings/python/notmuch/globals.py +++ b/bindings/python/notmuch/globals.py @@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth """ from ctypes import CDLL, Structure, POINTER -from version import SOVERSION +from notmuch.version import SOVERSION #----------------------------------------------------------------------------- #package-global instance of the notmuch library -- 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 7C0166DE1147 for ; Sun, 17 May 2015 06:05:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.305 X-Spam-Level: X-Spam-Status: No, score=0.305 tagged_above=-999 required=5 tests=[AWL=0.295, 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 naN4xwLvHn2q for ; Sun, 17 May 2015 06:05:49 -0700 (PDT) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id 88FC46DE1018 for ; Sun, 17 May 2015 06:05:49 -0700 (PDT) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1YtyF6-0007eL-1v; Sun, 17 May 2015 13:04:32 +0000 Received: (nullmailer pid 15998 invoked by uid 1000); Sun, 17 May 2015 13:03:58 -0000 From: David Bremner To: David Bremner , Lele Gaifax , notmuch@notmuchmail.org Subject: [PATCH] python: use absolute import for SOVERSION Date: Sun, 17 May 2015 15:03:54 +0200 Message-Id: <1431867834-15936-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431152030-24171-1-git-send-email-david@tethera.net> References: <1431152030-24171-1-git-send-email-david@tethera.net> 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: Sun, 17 May 2015 13:05:52 -0000 Apparently python3 needs this. --- It seems like the previous sending of this patch didn't make it to the list. bindings/python/notmuch/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 4c49d51..70cfdc3 100644 --- a/bindings/python/notmuch/globals.py +++ b/bindings/python/notmuch/globals.py @@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth """ from ctypes import CDLL, Structure, POINTER -from version import SOVERSION +from notmuch.version import SOVERSION #----------------------------------------------------------------------------- #package-global instance of the notmuch library -- 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 9F0CD6DE1459 for ; Sat, 23 May 2015 12:21:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.284 X-Spam-Level: X-Spam-Status: No, score=0.284 tagged_above=-999 required=5 tests=[AWL=0.284] 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 rYU0sptZz4Kc for ; Sat, 23 May 2015 12:21:45 -0700 (PDT) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id 824CB6DE13E7 for ; Sat, 23 May 2015 12:21:45 -0700 (PDT) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1YwEyv-0002dU-6Q; Sat, 23 May 2015 19:21:13 +0000 Received: (nullmailer pid 28670 invoked by uid 1000); Sat, 23 May 2015 19:20:35 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [PATCH] python: use absolute import for SOVERSION In-Reply-To: <1431152030-24171-1-git-send-email-david@tethera.net> References: <877fslcmwk.fsf@nautilus.nautilus> <1431152030-24171-1-git-send-email-david@tethera.net> User-Agent: Notmuch/0.20~rc1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Sat, 23 May 2015 21:20:35 +0200 Message-ID: <87h9r3rth8.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain 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: Sat, 23 May 2015 19:21:49 -0000 David Bremner writes: > Apparently python3 needs this. > --- > bindings/python/notmuch/globals.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I verified this does indeed fix the python bindings. I have a seperate patch series which allows running the (meager python tests in the) test suite under python 3. I'll post that shortly, but in the mean time I've rolled another release candidate. I have done nothing about notmuch-emacs-mua since the last RC. d