#5 gettext problem on FreeBSD 4.9-RELEASE-p2 and python-2.4.1

2.0.0 Beta
closed-fixed
John B. Cole
8
2005-04-14
2005-04-11
John B. Cole
No

>>> import PyPedal.pyp_newclasses as pyp_newclasses

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/local/lib/python2.4/site-packages/PyPedal/pyp_newclasses.py",
line 26, in ?
import pyp_demog
File
"/usr/local/lib/python2.4/site-packages/PyPedal/pyp_demog.py",
line 16, in ?
import pyp_utils
File
"/usr/local/lib/python2.4/site-packages/PyPedal/pyp_utils.py",
line 41, in ?
from pyp_classes import *
File
"/usr/local/lib/python2.4/site-packages/PyPedal/pyp_classes.py",
line 26, in ?
lang =
gettext.translation('pypedal','/work1/jcole/pypedal/PyPedal/locale',languages=['en'])
File "/usr/local/lib/python2.4/gettext.py", line 456,
in translation
raise IOError(ENOENT, 'No translation file found for
domain', domain)
IOError: [Errno 2] No translation file found for
domain: 'pypedal'

Discussion

  • John B. Cole
    John B. Cole
    2005-04-11

    Logged In: YES
    user_id=56102

    It looks like there is an issue here with gettext and the
    I18N stuff I was trying to add. I do not have access toa
    FreeBSD box to do rigorous testing, but I may be able to
    temporarily fix this with some "try: ... except:" trickery.

     
  • John B. Cole
    John B. Cole
    2005-04-14

    Logged In: YES
    user_id=56102

    Disabled gettext. It was only used (as a prototype) by one
    method in pyp_classes, which is deprecated anyway.

     
  • John B. Cole
    John B. Cole
    2005-04-14

    • status: open --> closed-fixed