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

Dear Maintainer,

please run this short script, adapted from the README, which fails to
work.

#!/usr/bin/env python

from hyphen import Hyphenator
from hyphen.dictools import *
import traceback

for lang in ['de_DE', 'fr_FR', 'en_UK', 'ru_RU']:
    try:
        if not is_installed(lang):
            install(lang)
    except OSError, e:
        print traceback.format_exc()
        install(lang)
#EOF

I get the following output:
% ./pyhyphen-test.py 
Traceback (most recent call last):
  File "./pyhyphen-test.py", line 9, in <module>
    if not is_installed(lang):
  File "/usr/lib/python2.7/dist-packages/hyphen/dictools.py", line 29, in 
is_installed
    return (language in list_installed(directory))
  File "/usr/lib/python2.7/dist-packages/hyphen/dictools.py", line 19, in 
list_installed
    return [d[5:-4] for d in os.listdir(directory)
OSError: [Errno 2] No such file or directory: '$path'

Traceback (most recent call last):
  File "./pyhyphen-test.py", line 13, in <module>
    install(lang)
  File "/usr/lib/python2.7/dist-packages/hyphen/dictools.py", line 48, in 
install
    s = urllib2.urlopen(url).read()
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 396, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 258, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: $repohyph_de_DE.dic

Thanks,
~David


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9.2 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pyhyphen depends on:
ii  libc6      2.17-5
ii  python     2.7.5-2
ii  python2.6  2.6.8-2
ii  python2.7  2.7.5-6

python-pyhyphen recommends no packages.

python-pyhyphen suggests no packages.

-- debconf-show failed


-- 
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