Author: Brent Pinkston
Posted: 2011-03-07 21:31:35 Link
After dabo installation on Ubuntu 10.04, I opened the Python Shell and
added the "import dabo" line and the following error message was
returned. Any help would be greatly appreciated.
>>> import dabo
2011-03-07 21:21:54 - ERROR -
No translation file found for domain 'dabo'.
Locale dir = /usr/lib/locale
Languages = ['en_US']
Codeset = UTF8
Traceback (most recent call last):
File "<pyshell#0>", line 1, 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'
>>>
Regards,
Brent Pinkston
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/1299551495.24585.4.camel@bpinkston-linux
On Mar 7, 2011, at 9:31 PM, Brent Pinkston wrote:
> After dabo installation on Ubuntu 10.04, I opened the Python Shell and
> added the "import dabo" line and the following error message was
> returned. Any help would be greatly appreciated.
>
>>>> import dabo
> 2011-03-07 21:21:54 - ERROR -
> No translation file found for domain 'dabo'.
> Locale dir = /usr/lib/locale
> Languages = ['en_US']
> Codeset = UTF8
> Traceback (most recent call last):
> File "<pyshell#0>", line 1, 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'
>>>>
Seems to be a common problem under Ubuntu. Do you have a directory named 'locale' under the main 'dabo' directory, which from the above is '/usr/local/lib/python2.6/dist-packages/dabo/'? If so, is it an empty directory?
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/D44C8015-6CB1-4E00-8F10-2FA0718128BF@leafe.com
Author: Brent Pinkston
Posted: 2011-03-07 21:40:48 Link
i do not have a locale director under the main dabo director, but I do
have an empty "locale" directory under "/usr/lib"
On Mon, 2011-03-07 at 21:34 -0500, Ed Leafe wrote:
>
> > daboTranslation = gettext.translation("dabo", daboLocaleDir,
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/1299552048.27518.2.camel@bpinkston-linux
On Mar 7, 2011, at 9:40 PM, Brent Pinkston wrote:
> i do not have a locale director under the main dabo director, but I do
> have an empty "locale" directory under "/usr/lib"
The problem seems to be with the setup.py script: it doesn't copy the contents of the locale directory in some cases.
Do you still have the original files that were downloaded? If so, you can manually copy the locale directory contents from that folder to the main dabo directory. If not, you can (as root):
cd /usr/local/lib/python2.6/dist-packages/dabo/
svn export http://svn.dabodev.com/dabo/trunk/dabo/locale
That will grab the local directory and place it where it needs to be (assuming you have Subversion installed).
Sorry for the confusion. I'm not sure why setuptools works on Mac and Windows, but has this problem under Linux.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/F0EF16EF-043B-4C63-8FB2-598EF94CF2B0@leafe.com
Author: Brent Pinkston
Posted: 2011-03-08 09:51:41 Link
Got it ! Thanks for the assistance.
On Mon, Mar 7, 2011 at 9:40 PM, Brent Pinkston <pinkston.brent@gmail.com>wrote:
> i do not have a locale director under the main dabo director, but I do
> have an empty "locale" directory under "/usr/lib"
>
> On Mon, 2011-03-07 at 21:34 -0500, Ed Leafe wrote:
>
> >
> > > daboTranslation = gettext.translation("dabo", daboLocaleDir,
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
> text/plain (text body -- kept)
> text/html
> ---
> _______________________________________________
> Post Messages to: Dabo-users@leafe.com
> 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/1299552048.27518.2.camel@bpinkston-linux
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/AANLkTinV+XpNySP-JSxy_x9sVx+Q40hS4knUWPV3ZOHY@mail.gmail.com
Author: Brent Pinkston
Posted: 2011-03-08 12:36:48 Link
Got It? Copied the locale directory from the install folder into the dabo
path, and it worked fine. Thanks for your assistance.
In addition I just wanted to take this opportunity to introduce myself to
the group. I worked for a number of years in a Windows shop as a
.Net programmer and DBA, and for the last few years I have converted to
Linux for all of my home personal computing. I am just starting into the
open source programming world so things are a bit new to me, and appreciate
groups such as yourself who provide the support for folks like myself to
transition into the open source community. I will also provide the same
support to others as my proficiency rises to that level.
Thanks Again
Brent Pinkston
On Tue, Mar 8, 2011 at 7:48 AM, Ed Leafe <ed@leafe.com> wrote:
> On Mar 7, 2011, at 9:40 PM, Brent Pinkston wrote:
>
> > i do not have a locale director under the main dabo director, but I do
> > have an empty "locale" directory under "/usr/lib"
>
>
> The problem seems to be with the setup.py script: it doesn't copy
> the contents of the locale directory in some cases.
>
> Do you still have the original files that were downloaded? If so,
> you can manually copy the locale directory contents from that folder to the
> main dabo directory. If not, you can (as root):
>
> cd /usr/local/lib/python2.6/dist-packages/dabo/
> svn export http://svn.dabodev.com/dabo/trunk/dabo/locale
>
> That will grab the local directory and place it where it needs to be
> (assuming you have Subversion installed).
>
> Sorry for the confusion. I'm not sure why setuptools works on Mac
> and Windows, but has this problem under Linux.
>
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> Post Messages to: Dabo-users@leafe.com
> 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/F0EF16EF-043B-4C63-8FB2-598EF94CF2B0@leafe.com
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/AANLkTinDAefWwow9fnT6vg3w2zCco0_C35JnC93zXzB_@mail.gmail.com
On Mar 8, 2011, at 12:36 PM, Brent Pinkston wrote:
> In addition I just wanted to take this opportunity to introduce myself to
> the group. I worked for a number of years in a Windows shop as a
> .Net programmer and DBA, and for the last few years I have converted to
> Linux for all of my home personal computing. I am just starting into the
> open source programming world so things are a bit new to me, and appreciate
> groups such as yourself who provide the support for folks like myself to
> transition into the open source community. I will also provide the same
> support to others as my proficiency rises to that level.
Welcome - there are a lot of refugees from the Microsoft world here, so we feel your pain! Feel free to ask any questions that will make your transition smoother.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/61670A86-0F0C-404F-BF11-1BC0775E45C4@leafe.com