Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#3675 closed defect (fixed)

g.gui.rlisetup: cannot create the configuration file

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.8.0
Component: wxGUI Version: svn-trunk
Keywords: g.gui.rlisetup Cc:
CPU: Unspecified Platform: Unspecified

Description

When hitting the "Create" button in the G7:g.gui.rlisetup dialog, I get the following error in the GUI console:

Traceback (most recent call last):
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/rlisetup/frame.py", line 241, in
OnNew

RLIWizard(self)
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/rlisetup/wizard.py", line 68, in
__init__

self.samplingareapage = SamplingAreasPage(self.wizard, self)
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/rlisetup/wizard.py", line 940, in
__init__

self.areaOK.SetToolTip(wx.ToolTip(_("Select if use area by
area")))
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/gui_core/wrap.py", line 103, in
SetToolTip

wx.Button.SetToolTipString(self, tip)
  File "/usr/lib64/python2.7/site-
packages/wx-3.0-gtk3/wx/_core.py", line 11382, in
SetToolTipString

return _core_.Window_SetToolTipString(*args, **kwargs)
TypeError
:
String or Unicode type required

I use freshly compiled trunk.

Change History (6)

comment:1 Changed 12 months ago by mlennert

Not a solution to the bug, but a colleague of mine wrote a Python function to create the setup files non-interactively from within a script: https://github.com/ANAGEO/GRASSStuff/blob/master/SpatialMetrics_LandscapeMetrics/create_rli_configfile.py. Free for reuse.

comment:2 in reply to:  1 Changed 12 months ago by veroandreo

Replying to mlennert:

Not a solution to the bug, but a colleague of mine wrote a Python function to create the setup files non-interactively from within a script: https://github.com/ANAGEO/GRASSStuff/blob/master/SpatialMetrics_LandscapeMetrics/create_rli_configfile.py. Free for reuse.

G7:g.gui.rlisetup works fine in grass74 relbranch, so I created it there (but I Sohad further errors in r.li.* modules, see #3676). So, the config file issue seems to be a problem in trunk only. Maybe also 76, this latter I have not tried, though.

comment:3 Changed 12 months ago by annakrat

Resolution: fixed
Status: newclosed

In 73492:

wxGUI: fix #3675

comment:4 Changed 12 months ago by veroandreo

Thanks!

comment:5 Changed 12 months ago by martinl

Milestone is 7.6.0, any backport needed?

comment:6 Changed 12 months ago by veroandreo

Milestone: 7.6.07.8.0

In 7.6 relbranch it works fine, it was only on trunk. I changed milestone for proper record.

Note: See TracTickets for help on using tickets.