Mark, I am considering to move from Win 7 to Ubuntu 10.10 for my dev machine and I did the following to get Dabo installed and running.
Ubuntu has Py 2.6.6 installed, so I will put Dabo into that for the moment. http://www.python.org/download/releases/2.7.1/ sudo apt-get --yes install python-reportlab sudo apt-get --yes install python-wxgtk2.8 sudo apt-get --yes install subversion sudo apt-get --yes install python-mysqldb I got the above from "http://wiki.dabodev.com/InstallationOnLinux" but installed things individually, just in case I error on something it is easier to identify the source. To check the install run "python" and enter the following commands: import reportlab import wx You should see something like this: Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import reportlab >>> import wx >>> Exit python with "ctrl-d". Then I created in my home folder a folder called "devProjects" cd devProjects svn checkout http://svn.dabodev.com/dabo/trunk dabo cd dabo sudo python setup.py install To check run "python" again and "import dabo" and you should see something like this: Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import dabo >>> If at any point you run into a problem you should always provide the full traceback, like shown below. I wanted to test the dabo demo and did the following: cd demo python DaboDemo.py Which throws this exception: 2011-04-22 17:20:34 - ERROR - No translation file found for domain 'dabo'. Locale dir = /usr/lib/locale Languages = ['en_US'] Codeset = UTF8 Traceback (most recent call last): File "DaboDemo.py", line 6, in <module> import dabo File "/usr/local/lib/python2.6/dist-packages/dabo/__init__.py", line 291, in <module> dLocalize.install("dabo") File "/usr/local/lib/python2.6/dist-packages/dabo/dLocalize.py", line 79, in install setLanguage(_defaultLanguage, _defaultEncoding) File "/usr/local/lib/python2.6/dist-packages/dabo/dLocalize.py", line 113, in setLanguage daboTranslation = gettext.translation("dabo", daboLocaleDir, languages=["en"], codeset=charset) 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: 'dabo' I know that this is caused by dabo not finding the file containing the translation (dabo.mo for the requested language), so looking for it I found it in: /usr/local/dabo/locale/en/LC_MESSAGES However dabo is installed here: /usr/local/lib/python2.6/dist-packages/dabo I went ahead and copied "locale" folder from "/usr/local/dabo" to "/usr/local/lib/python2.6/dist-packages/dabo" I can now run "python DaboDemo.py". It looks like dabo/setup.py doesn't copy the "locale" folder to the correct location - hopefully someone with more know how on Linux can confirm this and suggest/make a patch to setup.py. Werner _______________________________________________ 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]
