Dabo安装问题

根据http://dabodev.com/wiki/InstallationOnWindows安装Dabo 0.91,发现下面的错误.

 

Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    from dabo.__version__ import version
  File "D:\dabo\dabo\__init__.py", line 130, in <module>
    dLocalize.install("dabo")
  File "D:\dabo\dabo\dLocalize.py", line 56, in install
    setLanguage(_defaultLanguage, _defaultEncoding)
  File "D:\dabo\dabo\dLocalize.py", line 76, in setLanguage
    daboTranslation = gettext.translation("dabo", daboLocaleDir, languages=lang,
 codeset=charset)
  File "D:\Python25\lib\gettext.py", line 469, in translation
    raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'dabo'

 

 

按照Dabo的官方文档,安装Dabo出现错误.Goolgle很久也没有发现解决方案.

 

 

仔细分析代码,竟然是Dabo没有中文的本地化文件.

 

解决办法:

在dabo\locale的目录下建立一个zh_CN的目录,把dabo\locale\en的内容复制过去.就可以安装了.

 

欺骗下安装脚本.

你可能感兴趣的:(脚本)