Bug 611751 - [abrt] crash in virtaal-0.6.1-1.fc13: libtranslate.py:92:query:TypeError: coercing to Unicode: need string or buffer, NoneType found
Summary: [abrt] crash in virtaal-0.6.1-1.fc13: libtranslate.py:92:query:TypeError: coe...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: virtaal
Version: 13
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dwayne Bailey
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:55a80451
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-06 11:22 UTC by kruvalig
Modified: 2010-08-31 06:26 UTC (History)
1 user (show)

Fixed In Version: virtaal-0.6.1-5.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-31 06:26:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (717 bytes, text/plain)
2010-07-06 11:22 UTC, kruvalig
no flags Details

Description kruvalig 2010-07-06 11:22:50 UTC
abrt 1.1.1 detected a crash.

architecture: i686
cmdline: /usr/bin/python /usr/bin/virtaal
component: virtaal
executable: /usr/bin/virtaal
kernel: 2.6.33.5-124.fc13.i686
package: virtaal-0.6.1-1.fc13
reason: libtranslate.py:92:query:TypeError: coercing to Unicode: need string or buffer, NoneType found
release: Fedora release 13 (Goddard)

backtrace
-----
libtranslate.py:92:query:TypeError: coercing to Unicode: need string or buffer, NoneType found

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/virtaal/plugins/tm/models/libtranslate.py", line 92, in query
    result = unicode(result, 'utf-8') # XXX: The encoding is just a guess
TypeError: coercing to Unicode: need string or buffer, NoneType found

Local variables in innermost frame:
err: c_long(0)
self: <TMModel object at 0xa9801e4 (LibtranslateTMModel at 0xaa1f400)>
result: None
tmcontroller: <TMController object at 0xa3c2a04 (TMController at 0xa4309a0)>
translation: []
query_str: multistring([u'Translating Wiki Pages'])
unit: <translate.storage.pypo.pounit object at 0xa4b062c>

How to reproduce
-----
1. View -> Translation suggestions
2.
3.

Comment 1 kruvalig 2010-07-06 11:22:52 UTC
Created attachment 429748 [details]
File: backtrace

Comment 2 Dwayne Bailey 2010-07-14 08:54:32 UTC
Thank you for the report, the following upstream patch fixes this error:

http://translate.svn.sourceforge.net/viewvc/translate/src/trunk/virtaal/virtaal/plugins/tm/models/libtranslate.py?r1=14795&r2=14794&pathrev=14795

I hope to integrate this into a bug fix release for Fedora or when 0.7 is released.

To work around this problem until then you can:
1) Apply the above patch
2) Disable the libtranslate plugin.  The error most likely occurs because there was some failure in libtranslate, so you probably were not going to get any machine translations results from libtranslate anyway.

Comment 3 Fedora Update System 2010-08-18 11:12:04 UTC
virtaal-0.6.1-5.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/virtaal-0.6.1-5.fc13

Comment 4 Fedora Update System 2010-08-20 01:26:03 UTC
virtaal-0.6.1-5.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update virtaal'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/virtaal-0.6.1-5.fc13

Comment 5 Fedora Update System 2010-08-31 06:26:39 UTC
virtaal-0.6.1-5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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