I tried to run the Hello World tutorial at Dabo
ftp://dabodev.com/dabo/Hello_msgBox_DaboClassDesigner_Tutorial_V1-02.pdf using
Class designer, which generates two files automatically:
File: Hello_msgBox.py
---------------------
import os
import inspect
import dabo
def main():
app = dabo.dApp()
curdir = os.getcwd()
# Get the current location's path
fname = inspect.getfile(main)
pth = os.path.split(fname)[0]
if pth:
# Switch to that path
os.chdir(pth)
app.MainFormClass = "Hello_msgBox.cdxml"
app.start()
# Return to the original location
os.chdir(curdir)
if __name__ == '__main__':
main()
File:Hello_msgBox-code.py
-------------------------
# -*- coding: utf-8 -*-
### Dabo Class Designer code. You many freely edit the code,
### but do not change the comments containing:
### 'Dabo Code ID: XXXX',
### as these are needed to link the code to the objects.
## *!* ## Dabo Code ID: dButton-dPanel
def onHit(self, evt):
dabo.ui.info("Hello World", title "I say")
Error Traceback recieved on running in IDLE
-------------------------------------------
Traceback (most recent call last):
File "D:\Python\PYTHONdev\Dabo\HelloWorld\Hello_msgBox.py", line 3, in
<module>
import dabo
File "d:\python25\lib\site-packages\Dabo-0.8.4-py2.5.egg\dabo\__init__.py",
line 129, in <module>
dLocalize.install("dabo")
File "d:\python25\lib\site-packages\Dabo-0.8.4-py2.5.egg\dabo\dLocalize.py",
line 53, in install
setLanguage(_defaultLanguage, _defaultEncoding)
File "d:\python25\lib\site-packages\Dabo-0.8.4-py2.5.egg\dabo\dLocalize.py",
line 73, 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'
My Setup:
---------
Windows XP SP2 (32 Bit)
Python 2.5.2
wxPython 2.8.9.1
Dabo 0.8.4
I have checked the mailing list. The issue has been put up but no solution is
provided. I have checked the Dabo General Info Formum too.
Rupesh
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]