[GRASS-dev] wxGUI broken in grass64 r41104

running make in gui/wypython in grass64 gives me

Traceback (most recent call last):
  File "gui_modules/menudata.py", line 76, in <module>
    gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
  File "/usr/lib64/python2.5/posixpath.py", line 62, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
make[1]: *** [menustrings.py] Error 1
make: *** [install_scripts] Error 2

after make distclean, configuring anew, make

On Thu, Feb 18, 2010 at 11:37 PM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:

running make in gui/wypython in grass64 gives me

Traceback (most recent call last):
File "gui_modules/menudata.py", line 76, in <module>
gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'),
unicode=True)
File "/usr/lib64/python2.5/posixpath.py", line 62, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
make[1]: *** [menustrings.py] Error 1
make: *** [install_scripts] Error 2

after make distclean, configuring anew, make

Try r41105.

I have reverted gettext addition due to compile error in that file.

Markus

Markus Neteler wrote:

Try r41105.

I have reverted gettext addition due to compile error in that file.

During the build process, menudata.py is executed as a script (with
GISBASE unset, hence the error) to generate the menustrings.py file
(so that "make -C locale pot" includes the label and help strings from
menudata.xml).

When used in this way, the strings shouldn't be translated; otherwise
you'll end up with the translated strings as "source" strings in the
grasswxpy.pot file.

--
Glynn Clements <glynn@gclements.plus.com>

On Fri, Feb 19, 2010 at 1:57 AM, Glynn Clements
<glynn@gclements.plus.com> wrote:

Markus Neteler wrote:

Try r41105.

I have reverted gettext addition due to compile error in that file.

During the build process, menudata.py is executed as a script (with
GISBASE unset, hence the error) to generate the menustrings.py file
(so that "make -C locale pot" includes the label and help strings from
menudata.xml).

When used in this way, the strings shouldn't be translated; otherwise
you'll end up with the translated strings as "source" strings in the
grasswxpy.pot file.

I'll leave needed corrections (if any) to the wx/python-savvy people.

Markus

Markus Neteler wrote:

On Thu, Feb 18, 2010 at 11:37 PM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:
  

running make in gui/wypython in grass64 gives me

Traceback (most recent call last):
File "gui_modules/menudata.py", line 76, in <module>
  gettext.install('grasswxpy', os.path.join(os.getenv("GISBASE"), 'locale'),
unicode=True)
File "/usr/lib64/python2.5/posixpath.py", line 62, in join
  elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
make[1]: *** [menustrings.py] Error 1
make: *** [install_scripts] Error 2

after make distclean, configuring anew, make
    
Try r41105.
  

Thanks, everything compiles fine now.