koehlma / pygtkspellcheck

A simple but quite powerful spellchecking library for GTK written in pure Python.
GNU General Public License v3.0
23 stars 9 forks source link

Installation fails if LC_MESSAGES is empty, C or garbage #10

Closed jhass closed 12 years ago

jhass commented 12 years ago

In other words if the locale isn't available.


mrzyx@mrzyx-laptop: ~ % LC_MESSAGES=C sudo pip install pygtkspellcheck
zsh: correct 'pip' to '.pip' [nyae]? n
Downloading/unpacking pygtkspellcheck
  Downloading pygtkspellcheck-3.0a.tar.gz (152Kb): 152Kb downloaded
  Running setup.py egg_info for package pygtkspellcheck
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/mrzyx/build/pygtkspellcheck/setup.py", line 23, in <module>
        import gtkspellcheck as m
      File "./src/gtkspellcheck/__init__.py", line 55, in <module>
        from gtkspellcheck.spellcheck import SpellChecker
      File "./src/gtkspellcheck/spellcheck.py", line 32, in <module>
        from pylocales import code_to_name
      File "./src/pylocales/__init__.py", line 55, in <module>
        from pylocales.locales import *
      File "./src/pylocales/locales.py", line 37, in <module>
        _translator_language = gettext.translation('iso_639').gettext
      File "/usr/lib/python3.2/gettext.py", line 401, in translation
        raise IOError(ENOENT, 'No translation file found for domain', domain)
    IOError: [Errno 2] No translation file found for domain: 'iso_639'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/mrzyx/build/pygtkspellcheck/setup.py", line 23, in <module>

    import gtkspellcheck as m

  File "./src/gtkspellcheck/__init__.py", line 55, in <module>

    from gtkspellcheck.spellcheck import SpellChecker

  File "./src/gtkspellcheck/spellcheck.py", line 32, in <module>

    from pylocales import code_to_name

  File "./src/pylocales/__init__.py", line 55, in <module>

    from pylocales.locales import *

  File "./src/pylocales/locales.py", line 37, in <module>

    _translator_language = gettext.translation('iso_639').gettext

  File "/usr/lib/python3.2/gettext.py", line 401, in translation

    raise IOError(ENOENT, 'No translation file found for domain', domain)

IOError: [Errno 2] No translation file found for domain: 'iso_639'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/mrzyx/build/pygtkspellcheck
Storing complete log in /root/.pip/pip.log
koehlma commented 12 years ago

This is already fixed in in git, I uploaded a new version to PyPi, thanks for reporting this.

jhass commented 12 years ago

Thank you.