Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install = IOError: [Errno 2] No translation file found for domain: 'dabo' #15

Open
CarlFK opened this issue Nov 11, 2014 · 2 comments

Comments

@CarlFK
Copy link
Contributor

CarlFK commented Nov 11, 2014

This issue has existed for years. I think I logged it in previous issue tracker. it is mentioned in #12

(test)juser@dhcp244:$ virtualenv test
New python executable in test/bin/python
Installing setuptools, pip...done.
(test)juser@dhcp244:
$ cd test/
(test)juser@dhcp244:/test$ . bin/activate
(test)juser@dhcp244:
/test$ pip install git+https://github.com/dabodev/dabo

Downloading/unpacking git+https://github.com/dabodev/dabo
  Cloning https://github.com/dabodev/dabo to /tmp/pip-IZECWo-build
  Running setup.py (path:/tmp/pip-IZECWo-build/setup.py) egg_info for package from git+https://github.com/dabodev/dabo

Installing collected packages: Dabo
  Running setup.py install for Dabo

Successfully installed Dabo
Cleaning up...

(test)juser@dhcp244:~/test$ python -c "import dabo"

2014-11-11 12:05:05 - ERROR - 
No translation file found for domain 'dabo'.
    Locale dir = /usr/lib/locale
    Languages = ['en_US']
    Codeset = UTF-8 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/juser/test/local/lib/python2.7/site-packages/dabo/__init__.py", line 186, in <module>
    dLocalize.install("dabo")
  File "/home/juser/test/local/lib/python2.7/site-packages/dabo/dLocalize.py", line 79, in install
    setLanguage(_defaultLanguage, _defaultEncoding)
  File "/home/juser/test/local/lib/python2.7/site-packages/dabo/dLocalize.py", line 113, in setLanguage
    daboTranslation = gettext.translation("dabo", daboLocaleDir, languages=["en"], codeset=charset)
  File "/usr/lib/python2.7/gettext.py", line 484, in translation
    raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'dabo'

For me it is low priority, I have simple enough workaround:

cd $(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
git clone https://github.com/dabodev/dabo.git dabo-master
ln -s dabo-master/dabo
cd -
@rgammans
Copy link

I think this duplicates #14

@Thumas
Copy link

Thumas commented Feb 12, 2015

The locales are not installed by setup.py. A quick fix is copying the locale folder from the source directory to the place where Dabo is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants