Package: python-pyhyphen
Version: 1.0~beta1-2
Severity: important

I have hyphen-en-us installed on my system, so expected that calling hyphen.hyphenator() with default arguments will open the US English dictionary. But instead it raises rather unhelpful exception:

$ python -c 'from hyphen import hyphenator; hyphenator()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/hyphen/__init__.py", line 132, in 
__init__
    compound_lmin, compound_rmin)
IOError: Cannot load hyphen dictionary.

Looking at strace output, pyhyphen is trying to open a file in a nonsense directory:

open("$path/en_US", O_RDONLY)           = -1 ENOENT (No such file or directory)


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pyhyphen depends on:
ii  libc6                         2.13-4     Embedded GNU C Library: Shared lib
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python2.6                     2.6.6-10   An interactive high-level object-o
ii  python2.7                     2.7.1-9    An interactive high-level object-o

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to