-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) #20
Comments
is that on master or development? |
it also might be related to you running python 2.6: it could be that formating unicode strings has changed. #/usr/bin/python another possibility is that aname contains a utf8 string that somehow gets handed to a unicode constructor, |
another possibility: import email Does this return a tuple of unicode strings? |
It's on master
And it happens with python 2.7 as well
|
|
how about the second suggestion? |
well, kinda ^^
It returns a tuple of unicode strings, but the first one's empty as it doesn't seperate the name from the address ^^ |
|
haha: thats a c/p mistake with github:) |
sweet as apple pie. will update notmuch. |
Am I missing something? dtk@blackboxx:/media/devel/notmuch/git/notmuch$ git fetch
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 5), reused 0 (delta 0)
Unpacking objects: 100% (7/7), done.
From git://notmuchmail.org/git/notmuch
ee4579a..f10ec87 master -> origin/master
dtk@blackboxx:/media/devel/notmuch/git/notmuch$ git status
# On branch master
# Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
#
nothing to commit (working directory clean)
dtk@blackboxx:/media/devel/notmuch/git/notmuch$ git merge origin
Updating ee4579a..f10ec87
Fast-forward
bindings/python/notmuch/tag.py | 2 +-
bindings/python/notmuch/thread.py | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
dtk@blackboxx:/media/devel/notmuch/git/notmuch$ cd bindings/python/
dtk@blackboxx:/media/devel/notmuch/git/notmuch/bindings/python$ sudo python2.7 setup.py install
running install
running build
running build_py
copying notmuch/thread.py -> build/lib.linux-i686-2.7/notmuch
copying notmuch/database.py -> build/lib.linux-i686-2.7/notmuch
copying notmuch/filename.py -> build/lib.linux-i686-2.7/notmuch
copying notmuch/__init__.py -> build/lib.linux-i686-2.7/notmuch
copying notmuch/globals.py -> build/lib.linux-i686-2.7/notmuch
copying notmuch/tag.py -> build/lib.linux-i686-2.7/notmuch
copying notmuch/message.py -> build/lib.linux-i686-2.7/notmuch
running install_lib
copying build/lib.linux-i686-2.7/notmuch/thread.py -> /usr/local/lib/python2.7/dist-packages/notmuch
copying build/lib.linux-i686-2.7/notmuch/tag.py -> /usr/local/lib/python2.7/dist-packages/notmuch
byte-compiling /usr/local/lib/python2.7/dist-packages/notmuch/thread.py to thread.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/notmuch/tag.py to tag.pyc
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/notmuch-0.6.egg-info
Writing /usr/local/lib/python2.7/dist-packages/notmuch-0.6.egg-info
dtk@blackboxx:/media/devel/notmuch/git/notmuch$ cd -
/media/devel/notmuch/git/alot
dtk@blackboxx:/media/devel/notmuch/git/alot$ python2.7 bin/alot
Traceback (most recent call last):
File "bin/alot", line 20, in <module>
main()
File "/media/devel/notmuch/git/alot/alot/init.py", line 90, in main
args.colours,
File "/media/devel/notmuch/git/alot/alot/ui.py", line 74, in __init__
self.mainloop.run()
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/main_loop.py", line 271, in run
self.screen.run_wrapper(self._run)
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/raw_display.py", line 228, in run_wrapper
return fn()
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/main_loop.py", line 292, in _run
self.event_loop.run()
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/main_loop.py", line 667, in run
self._loop()
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/main_loop.py", line 705, in _loop
self._watch_files[fd]()
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/main_loop.py", line 343, in _update
self.process_input(keys)
File "/usr/local/lib/python2.7/dist-packages/urwid-1.0.0-py2.7-linux-i686.egg/urwid/main_loop.py", line 432, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/media/devel/notmuch/git/alot/alot/ui.py", line 42, in keypress
self.ui.apply_command(cmd)
File "/media/devel/notmuch/git/alot/alot/ui.py", line 349, in apply_command
cmd.apply(self)
File "/media/devel/notmuch/git/alot/alot/command.py", line 88, in apply
sb = buffer.ThreadBuffer(ui, self.thread)
File "/media/devel/notmuch/git/alot/alot/buffer.py", line 192, in __init__
self.rebuild()
File "/media/devel/notmuch/git/alot/alot/buffer.py", line 232, in rebuild
bars_at=bars)
File "/media/devel/notmuch/git/alot/alot/widgets.py", line 213, in __init__
self.sumline = self._build_sum_line()
File "/media/devel/notmuch/git/alot/alot/widgets.py", line 235, in _build_sum_line
self.sumw = MessageSummaryWidget(self.message, even=self.even)
File "/media/devel/notmuch/git/alot/alot/widgets.py", line 361, in __init__
sumstr = self.__str__()
File "/media/devel/notmuch/git/alot/alot/widgets.py", line 366, in __str__
return self.message.__str__()
File "/media/devel/notmuch/git/alot/alot/message.py", line 58, in __str__
return "%s (%s)" % (aname, self.get_datestring())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
dtk@blackboxx:/media/devel/notmuch/git/alot$
|
sorry, can't reproduce.. I'm usually using git pull, but fetch and merge should be the same thing. |
actually, it's m4z' "Heads-up! Diplomarbeit im Anflug." thread. U received that one? |
I received only todays mail. anything special in the authors headers of the prev. ones? |
I used thunderbird's feature to forward a whole thread as an attachment. so... u got mail ;) |
you fixed it. somehow. somewhere. in one of the modules, I guess. I realized it worked when I set my PYTHONPATH to use the modules in the git (instead of the installed ones) in order to do some debugging. The old, installed master had the problem, develop didn't have it anymore, but I just updated master, and it seems to be working there as well now (I only got a change in USAGE, so it must have been in an earlier, not yet installed merge). |
alot dies reproducibly when trying to open a certain thread.
Please let me know if you need further, more specific information on the mails.
The text was updated successfully, but these errors were encountered: