[GRASS-dev] [GRASS GIS] #926: Error writing workspace file: 'bool object has no attribute replace'

#926: Error writing workspace file: 'bool object has no attribute replace'
-----------------------+----------------------------------------------------
Reporter: epatton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: workspace | Platform: Linux
      Cpu: x86-64 |
-----------------------+----------------------------------------------------
I've loaded several vector maps to the Layer Manager, and hit Ctrl-S, gave
a workspace file name, and after hitting Enter a pop-up dialog reads:

{{{
Writing current settings to workspace file failed ('bool' object has no
attribute 'replace').
}}}

~ Eric.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/926&gt;
GRASS GIS <http://grass.osgeo.org>

#926: Error writing workspace file: 'bool object has no attribute replace'
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: workspace
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by martinl):

* cc: martinl (added)

Comment:

Seems to work here. Tested with GRASS 6.5 from SVN.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/926#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#926: Error writing workspace file: 'bool object has no attribute replace'
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: workspace
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by epatton):

I just tried a fresh svn checkout and install of 6.5.svn this morning, and
I get the same error. There were no errors during configure or make;
error.log is empty. Can anyone else confirm?

~ Eric.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/926#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#926: Error writing workspace file: 'bool object has no attribute replace'
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: workspace
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by epatton):

Here's what actually gets written to the workspace file; maybe the point
at which it gets truncated gives a clue:

{{{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE gxw SYSTEM "grass-gxw.dtd">
<gxw>
     <layer_manager dim="0,25,511,725">
     </layer_manager>
     <display render="1" mode="6" showCompExtent="0" constrainRes="0"
dim="517,25,757,725"
extent="442848.559319,7806497.907494,545333.166481,7895662.234149">
         <layer type="grid" name="grid" checked="0" opacity="1.000000">
             <task name="d.grid">
                 <parameter name="verbose">

}}}

~ Eric.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/926#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#926: Error writing workspace file: 'bool object has no attribute replace'
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: martinl
      Type: defect | Status: assigned
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: workspace
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by martinl):

* cc: martinl (removed)
* cc: grass-dev@lists.osgeo.org (added)
  * owner: grass-dev@lists.osgeo.org => martinl
  * status: new => assigned

Comment:

Right, hopefully fixed r41049 (6.5), r41050 (6.4), r41051 (7.0).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/926#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#926: Error writing workspace file: 'bool object has no attribute replace'
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords: workspace
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by epatton):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Thanks, Martin! Workspaces can be saved and opened with no errors in 6.4,
6.5 and 7.

Much appreciated,

~ Eric.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/926#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>