Help Need in running a Python Program from terminal

Raji sraji.me at gmail.com
Tue Oct 26 03:07:17 EDT 2010


Greetings Philip !

>  File "openastro.py", line 90, in <module>
> >    TRANSLATION[LANGUAGES[i]] =
> > gettext.translation("openastro",TDomain,languages=['en'])
> >  File "/usr/lib/python2.6/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: 'openastro'
>
> Hi Raji,
> Did you have a look at the documentation for the call that's failing?
>
> Here's the doc for gettext.translation():
> http://docs.python.org/library/gettext.html#gettext.translation
>
> I don't know anything about gettext or openastro, but the doc says, "If no
> .mo file is found, this function raises IOError..." which is the problem
> you're having. It seems like what you downloaded is expecting to find a .mo
> file but can't. You might want to check the package instructions on
> openastro.org to make sure there's not more you need to do to install it.
>
>
You are right.

The .mo file is present in  /openastro.org-1.1.23.orig/locale/en/LC_MESSAGES

But it cant find it.

Thanks for the information

Im looking towards to correct the error

-- 
Regards

Raji

http://sraji.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101026/8384d3d2/attachment.html>


More information about the Python-list mailing list