From: Lele Gaifax <lele@metapensiero.it>
To: notmuch@notmuchmail.org
Subject: Repost: Notmuch 0.20~rc1
Date: Thu, 07 May 2015 01:21:47 +0200 [thread overview]
Message-ID: <877fslcmwk.fsf@nautilus.nautilus> (raw)
In-Reply-To: 70D1DC25-148E-425E-B1E9-4F2FFC9AFF1A@metapensiero.it
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 <module>
from notmuch import Query
File "/usr/lib/python3/dist-packages/notmuch/__init__.py", line 54, in <module>
from .database import Database
File "/usr/lib/python3/dist-packages/notmuch/database.py", line 24, in <module>
from .globals import (
File "/usr/lib/python3/dist-packages/notmuch/globals.py", line 21, in <module>
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.
next prev parent reply other threads:[~2015-05-06 23:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 15:18 Bridge with gmane in trouble? Lele Gaifax
2015-05-06 23:21 ` Lele Gaifax [this message]
2015-05-09 6:13 ` [PATCH] python: use absolute import for SOVERSION David Bremner
2015-05-17 13:03 ` David Bremner
2015-05-23 19:20 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fslcmwk.fsf@nautilus.nautilus \
--to=lele@metapensiero.it \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).