Bug#570742: snowballz: crashes with AttributeError: 'NoneType' object has no attribute '__name__' with python2.6

SevenMachines sevenmachines at yahoo.co.uk
Sun Feb 21 07:14:02 UTC 2010


Package: snowballz
Version: 0.9.5.1-2
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu lucid ubuntu-patch

The below bug doesn't affect debian at the moment but will do if python2.6 is used. This seems to be related to the way __hash__ is implemented in containers, using None type rather than exceptions to mark themselves unhashable. The fix used below should be generally applicable though, it only checks for None types in cellulose celltypes and doesnt try to access variables that wont exist in them

*** /tmp/tmp9YCb5W
In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/patches/list_nohash.patch:
    - catch a case where the cellulose celltype tries to get variables 
    from None types (LP: #350466, #234598)

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid
  APT policy: (500, 'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-14-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmpdZKnb8
Type: text/x-diff
Size: 2254 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20100221/b5a44cd2/attachment.diff>


More information about the Pkg-games-devel mailing list