Bug 704815 - [abrt] gnome-activity-journal-0.6.0-2.fc15: lexer.py:146:get_tokens:TypeError: decode() argument 1 must be string, not None
Summary: [abrt] gnome-activity-journal-0.6.0-2.fc15: lexer.py:146:get_tokens:TypeError...
Keywords:
Status: CLOSED DUPLICATE of bug 648215
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-activity-journal
Version: 15
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mads Villadsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:269cf8dd03437fe9f3ba5064d47...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-15 08:43 UTC by Vlad
Modified: 2011-05-30 15:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 15:41:00 UTC
Type: ---


Attachments (Terms of Use)

Description Vlad 2011-05-15 08:43:28 UTC
abrt version: 2.0.1
architecture:   x86_64
cmdline:        python /usr/bin/gnome-activity-journal
component:      gnome-activity-journal
executable:     /usr/bin/gnome-activity-journal
kernel:         2.6.38.5-24.fc15.x86_64
os_release:     Fedora release 15 (Lovelock)
package:        gnome-activity-journal-0.6.0-2.fc15
reason:         lexer.py:146:get_tokens:TypeError: decode() argument 1 must be string, not None
time:           Sun May 15 16:15:50 2011
uid:            500
username:       krnlbg

backtrace:
:lexer.py:146:get_tokens:TypeError: decode() argument 1 must be string, not None
:
:Traceback (most recent call last):
:  File "/usr/share/gnome-activity-journal/src/activity_widgets.py", line 766, in on_render
:    pixbuf_w = self.pixbuf.get_width() if self.pixbuf else 0
:  File "/usr/share/gnome-activity-journal/src/activity_widgets.py", line 733, in pixbuf
:    return self.content_obj.thumbview_pixbuf
:  File "/usr/share/gnome-activity-journal/src/content_objects.py", line 57, in __get__
:    value = self.method(instance)
:  File "/usr/share/gnome-activity-journal/src/content_objects.py", line 343, in thumbview_pixbuf
:    thumbview_pixbuf, isthumb = common.PIXBUFCACHE.get_pixbuf_from_uri(self.uri, SIZE_LARGE, iconscale=0.1875, w=SIZE_THUMBVIEW[0], h=SIZE_THUMBVIEW[1])
:  File "/usr/share/gnome-activity-journal/src/common.py", line 648, in get_pixbuf_from_uri
:    pb = gfile.get_thumbnail(size=size)
:  File "/usr/share/gnome-activity-journal/src/common.py", line 831, in get_thumbnail
:    thumb = create_text_thumb(self, size, 1)
:  File "/usr/share/gnome-activity-journal/src/common.py", line 505, in create_text_thumb
:    content = highlight(content, lexer, formatter)
:  File "/usr/lib/python2.7/site-packages/pygments/__init__.py", line 86, in highlight
:    return format(lex(code, lexer), formatter, outfile)
:  File "/usr/lib/python2.7/site-packages/pygments/__init__.py", line 45, in lex
:    return lexer.get_tokens(code)
:  File "/usr/lib/python2.7/site-packages/pygments/lexer.py", line 146, in get_tokens
:    text = text.decode(enc['encoding'])
:TypeError: decode() argument 1 must be string, not None
:
:Local variables in innermost frame:
:text: ''
:self: <pygments.lexers.TextLexer>
:enc: {'confidence': 0.0, 'encoding': None}
:chardet: <module 'chardet' from '/usr/lib/python2.7/site-packages/chardet/__init__.pyc'>
:unfiltered: False

Comment 1 Mads Villadsen 2011-05-30 15:41:00 UTC

*** This bug has been marked as a duplicate of bug 648215 ***


Note You need to log in before you can comment on or make changes to this bug.