aspell-hi (0.02-5) is unavailable after install

Bug #1568313 reported by Aaron Halfaker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aspell-hi (Ubuntu)
New
Undecided
Unassigned

Bug Description

I've been installing (a|hun|my)spell packages for use with `enchant` this has been working out great. I've only recently run into an issue with the package for aspell-hi for Ubuntu 14.04. Installing it does not make the package available to enchant.

The following lines demonstrate that the aspell-hi package is installed on my system, but is not available. Strangely enough, my python connector library for enchant finds the dictionary for `('hi', <Enchant: Aspell Provider>)`, but cannot use it.

```
$ lsb_release -rd
Description: Ubuntu 14.04.4 LTS
Release: 14.04

$ sudo apt-get install aspell-hi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  aspell-hi
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/1,171 kB of archives.
After this operation, 2,176 kB of additional disk space will be used.
Selecting previously unselected package aspell-hi.
(Reading database ... 742478 files and directories currently installed.)
Preparing to unpack .../aspell-hi_0.02-5_all.deb ...
Unpacking aspell-hi (0.02-5) ...
Setting up aspell-hi (0.02-5) ...
Processing triggers for dictionaries-common (1.20.5) ...
aspell-autobuildhash: processing: hi [hi]

(3.4)[halfak@graphite: ~/projects/revscoring]
$ apt-cache policy aspell-hi
aspell-hi:
  Installed: 0.02-5
  Candidate: 0.02-5
  Version table:
 *** 0.02-5 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

$ enchant -d en LICENSE -l
Halfaker
sublicense
NONINFRINGEMENT

$ enchant -d hi LICENSE -l
Couldn't create a dictionary for hi

$ python
Python 3.4.3 (default, Jul 28 2015, 18:20:59)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import enchant
>>> enchant.list_dicts()
[('vi_VN', <Enchant: Myspell Provider>), ('fa_IR', <Enchant: Myspell Provider>), ('en_GB', <Enchant: Myspell Provider>), ('en_ZA', <Enchant: Myspell Provider>), ('de_BE', <Enchant: Myspell Provider>), ('uk', <Enchant: Myspell Provider>), ('he_IL', <Enchant: Myspell Provider>), ('vi', <Enchant: Myspell Provider>), ('he', <Enchant: Myspell Provider>), ('de_DE', <Enchant: Myspell Provider>), ('it_IT', <Enchant: Myspell Provider>), ('uk_UA', <Enchant: Myspell Provider>), ('de_LU', <Enchant: Myspell Provider>), ('fa', <Enchant: Myspell Provider>), ('es_BO', <Enchant: Myspell Provider>), ('et_EE', <Enchant: Myspell Provider>), ('nl_AW', <Enchant: Myspell Provider>), ('es_GT', <Enchant: Myspell Provider>), ('pl', <Enchant: Myspell Provider>), ('fr_LU', <Enchant: Myspell Provider>), ('es_CO', <Enchant: Myspell Provider>), ('es_AR', <Enchant: Myspell Provider>), ('pt', <Enchant: Myspell Provider>), ('en_AU', <Enchant: Myspell Provider>), ('es_NI', <Enchant: Myspell Provider>), ('pt_BR', <Enchant: Myspell Provider>), ('es_VE', <Enchant: Myspell Provider>), ('es_SV', <Enchant: Myspell Provider>), ('es_CL', <Enchant: Myspell Provider>), ('nl', <Enchant: Myspell Provider>), ('nl_SR', <Enchant: Myspell Provider>), ('es_ES', <Enchant: Myspell Provider>), ('es_CU', <Enchant: Myspell Provider>), ('es_HN', <Enchant: Myspell Provider>), ('nl_AN', <Enchant: Myspell Provider>), ('es_EC', <Enchant: Myspell Provider>), ('fr_CA', <Enchant: Myspell Provider>), ('nl_BE', <Enchant: Myspell Provider>), ('es_PA', <Enchant: Myspell Provider>), ('nl_NL', <Enchant: Myspell Provider>), ('es_CR', <Enchant: Myspell Provider>), ('pl_PL', <Enchant: Myspell Provider>), ('es_PE', <Enchant: Myspell Provider>), ('es_DO', <Enchant: Myspell Provider>), ('ru_RU', <Enchant: Myspell Provider>), ('es_MX', <Enchant: Myspell Provider>), ('en_US', <Enchant: Myspell Provider>), ('fr_BE', <Enchant: Myspell Provider>), ('fr', <Enchant: Myspell Provider>), ('es_PR', <Enchant: Myspell Provider>), ('es_UY', <Enchant: Myspell Provider>), ('es', <Enchant: Myspell Provider>), ('fr_CH', <Enchant: Myspell Provider>), ('fr_FR', <Enchant: Myspell Provider>), ('es_PY', <Enchant: Myspell Provider>), ('pt_PT', <Enchant: Myspell Provider>), ('ar', <Enchant: Aspell Provider>), ('en', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('hi', <Enchant: Aspell Provider>), ('id', <Enchant: Aspell Provider>)]
>>> d = enchant.Dict('hi')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/halfak/env/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 555, in __init__
    _EnchantObject.__init__(self)
  File "/home/halfak/env/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 168, in __init__
    self._init_this()
  File "/home/halfak/env/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 562, in _init_this
    this = self._broker._request_dict_data(self.tag)
  File "/home/halfak/env/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 307, in _request_dict_data
    self._raise_error(eStr % (tag,),DictNotFoundError)
  File "/home/halfak/env/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 255, in _raise_error
    raise eclass(default)
enchant.errors.DictNotFoundError: Dictionary for language 'hi' could not be found
>>> d = enchant.Dict('id')
>>> d = enchant.Dict('en')
```

After exploring a bit, I found that the most recent "proposed" version in launchpad works great. See https://launchpad.net/ubuntu/vivid/amd64/aspell-hi/0.02-7. Since this package is currently broken and the proposed package seems to work as expected, it seems that updating the "stable" version would be a good solution.

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.