Thanks for fixing the download page.
On Sun, Dec 13, 2009 at 6:22 PM, Ed Leafe <[email protected]> wrote:
> On Dec 12, 2009, at 9:51 PM, Carl Karsten wrote:
>
>> 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'
>
> Wherever your copy of dabo is installed (i.e., the folder of the
> location returned by dabo.__file__), there should also be a 'locale'
> directory. This error seems like your locale directory did not get
> installed.
Looks like the problem is when setup.py is not run from the dir it is
in, because setup is expecting dabo/locale to be under the current
dir. This seems like it should fix it:
- localeDir = os.path.join("dabo", "locale")
+ localeDir = os.path.join(os.path.dirname(__file__), "dabo", "locale")
I will swear a test confirmed that it worked, but then I started
messing with iconDir and the glob.glob stuff, and now it isn't
working. I may have messed up my test box, so I am re-installing the
OS and will start over.
If anyone wonders what happens with __file and dirname:
(test)ju...@dhcp55:~$ cat test/foo.py
import os
print __file__
print os.path.dirname(__file__)
(test)ju...@dhcp55:~$ python test/foo.py
test/foo.py
test
(test)ju...@dhcp55:~/test$ python foo.py
foo.py
(test)ju...@dhcp55:~/test/bin$ python ../foo.py
../foo.py
..
(test)ju...@dhcp55:~/test/lib/python2.6$ python ../../foo.py
../../foo.py
../..
(test)ju...@dhcp55:~/test/lib$ python ~/test/foo.py
/home/juser/test/foo.py
/home/juser/test
(test)ju...@dhcp55:~/test/lib/python2.6$ python ../../../test/foo.py
../../../test/foo.py
../../../test
>>> import os
>>> os.path.join('1','2','3')
'1/2/3'
>>> os.path.join('','2','3')
'2/3'
>>> os.path.join('1','','3')
'1/3'
>>> os.path.join('','','')
''
>>> os.path.join('1','2','')
'1/2/'
>>> os.path.join('1','','')
'1/'
--
Carl K
_______________________________________________
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]