"TypeError: normalize() argument 2 must be unicode, not str" when using the find duplicate tool with soundex code

Bug #584639 reported by Mossroy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gramps
Fix Released
Unknown
gramps (Ubuntu)
Fix Released
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
Maverick
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gramps

This error appears when I use the duplicate search feature and check the use of Soundex codes
No error appears if I don't use the soundex codes
I use the version of Gramps that comes with Ubuntu 10.04 (with current updates)
I suppose this is because of some Unicode characters that I am using in my Gramps database, and that is incorrectly handled by Gramps.

This problem is already reported upstream : http://www.gramps-project.org/bugs/view.php?id=3937
It has been solved in version 3.2.2 of Gramps, so an upgrade would be enough.

Error Details:
===================

17699: ERROR: gramps.py: line 138: Unhandled exception
Traceback (most recent call last):
  File "/usr/share/gramps/plugins/tool/FindDupes.py", line 161, in on_merge_ok_clicked
    self.find_potentials(threshold)
  File "/usr/share/gramps/plugins/tool/FindDupes.py", line 199, in find_potentials
    key = self.gen_key(p1.get_primary_name().get_surname())
  File "/usr/share/gramps/plugins/tool/FindDupes.py", line 251, in gen_key
    return soundex.soundex(val)
  File "/usr/share/gramps/soundex.py", line 51, in soundex
    strval.upper().strip()).encode('ASCII', 'ignore')
TypeError: normalize() argument 2 must be unicode, not str

System Information:
===================

Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3]
BSDDB version: 4.7.3
Gramps version: 3.2.0-1
LANG: fr_FR.UTF-8
OS: Linux
Distribution: 2.6.32-22-generic

GTK version : (2, 20, 0)
pygtk version : (2, 17, 0)
gobject version: (2, 21, 1)
cairo version : (1, 8, 8)

Mossroy (mossroy)
description: updated
Changed in gramps:
status: Unknown → Incomplete
Revision history for this message
Duncan Lithgow (duncan-lithgow) wrote :

This bug would be solved by fulfilling the request for Ubuntu to upgrade Gramps to version 3.2.3 as in bug #582342. So please add yourself to that bug.

Changed in gramps:
status: Incomplete → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in maverick.

Changed in gramps (Ubuntu Maverick):
status: New → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in gramps (Ubuntu Lucid):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.