Your message dated Tue, 20 Nov 2012 18:33:43 +0000
with message-id <[email protected]>
and subject line Bug#693739: fixed in pycountry 0.14.1+ds1-3
has caused the Debian Bug report #693739,
regarding [python-pycountry] pycountry has been broken by an update of iso-codes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
693739: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693739
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-pycountry
Version: 0.14.1+ds1-2
Severity: grave

--- Please enter the report below this line. ---

Pycountry has been broken by an update of iso-codes.

It appears that the file /usr/share/xml/iso-codes/iso_639.xml now contains a new attribute for some languages : "common_name" (for instance for "Bengali"/"Bangla").

When importing pycountry, the following exception is raised:

>>> import pycountry
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pycountry/__init__.py", line 104, in <module>
    languages = Languages(os.path.join(DATABASE_DIR, 'iso_639.xml'))
  File "pycountry/db.py", line 54, in __init__
    entry.attributes.get(key).value)
KeyError: u'common_name'

Please find attached to this bug report a patch fixing this issue.

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.0-4-amd64

Debian Release: wheezy/sid
  990 testing         www.deb-multimedia.org
  990 testing         security.debian.org
  990 testing         ftp.free.fr
  500 unstable        ftp.free.fr
  500 stable          security.debian.org
  500 stable          ftp.free.fr

--- Package information. ---
Depends             (Version) | Installed
=============================-+-==============
python2.7                     | 2.7.3~rc2-2.1
 OR python2.6                 | 2.6.8-0.2
python          (>= 2.6.6-7~) | 2.7.3~rc2-1
python               (<< 2.8) | 2.7.3~rc2-1
iso-codes                     | 3.40-1
python-lxml                   | 2.3.2-1


Package's Recommends field is empty.

Package's Suggests field is empty.



diff -ru pycountry.orig/src/pycountry/__init__.py pycountry/src/pycountry/__init__.py
--- pycountry.orig/src/pycountry/__init__.py	2012-11-19 13:59:38.000000000 +0100
+++ pycountry/src/pycountry/__init__.py	2012-11-19 13:58:04.179394858 +0100
@@ -52,6 +52,7 @@
     field_map = dict(iso_639_2B_code='bibliographic',
                      iso_639_2T_code='terminology',
                      iso_639_1_code='alpha2',
+                     common_name='common_name',
                      name='name')
     data_class_name = 'Language'
     xml_tag = 'iso_639_entry'

--- End Message ---
--- Begin Message ---
Source: pycountry
Source-Version: 0.14.1+ds1-3

We believe that the bug you reported is fixed in the latest version of
pycountry, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <[email protected]> (supplier of updated pycountry package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 20 Nov 2012 19:14:08 +0100
Source: pycountry
Binary: python-pycountry
Architecture: source all
Version: 0.14.1+ds1-3
Distribution: unstable
Urgency: low
Maintainer: David Paleino <[email protected]>
Changed-By: David Paleino <[email protected]>
Description: 
 python-pycountry - ISO databases accessible from Python
Closes: 693739
Changes: 
 pycountry (0.14.1+ds1-3) unstable; urgency=low
 .
   * Support "common_name" attribute for languages, thanks to
     Jerome Flesch (Closes: #693739).
Checksums-Sha1: 
 4b365e17b2ff4899fe0c68e3afd5dbe8a65cc5ea 1311 pycountry_0.14.1+ds1-3.dsc
 03460d128788c5d23431c80af0832e1609ac5b69 4764 
pycountry_0.14.1+ds1-3.debian.tar.gz
 87358ee68ceb17a4b97cd277a6e9a9495d00844a 12098 
python-pycountry_0.14.1+ds1-3_all.deb
Checksums-Sha256: 
 5191cb53ca2b42f761f1582c88117831742ebf340b97a68d9f6e354fe097d9d4 1311 
pycountry_0.14.1+ds1-3.dsc
 7a83f940d6f910ba2b107a66f3632a35cb6f5f8092100b0b670a5c1f5823f0fe 4764 
pycountry_0.14.1+ds1-3.debian.tar.gz
 28ee24914f9d543728a1a49c3e05ef1779fc6cdc9f8f00c946813109a0a2551a 12098 
python-pycountry_0.14.1+ds1-3_all.deb
Files: 
 f653c729775270781e1f715b4455ea6e 1311 python extra pycountry_0.14.1+ds1-3.dsc
 7930180d60b6b0bd31b9d7ac3fb5b08c 4764 python extra 
pycountry_0.14.1+ds1-3.debian.tar.gz
 d604cf14e92f5b4ea30b00365ed09a1f 12098 python extra 
python-pycountry_0.14.1+ds1-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlCrytIACgkQ5qqQFxOSsXS3ZwCdGQxemu8NUw7gC7PQMn9vNUn1
JFwAn26dCJ+kjSSWRXgdfnWIv1kibh7V
=ZPV7
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to