Opened 11 years ago

Closed 10 years ago

#2072 closed defect (fixed)

Unable to load workspace.gxw in 3D View

Reported by: richardc Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: unspecified
Keywords: nviz, workspace Cc:
CPU: x86-32 Platform: Linux

Description (last modified by martinl)

I'm unable to load the workspace.gxw file in GRASS 7 (57592)

I receive the following error: Reading workspace file </home/user/RESEARCH/workspace_ ..GRASS7nviz.gxw> failed. Invalid file, unable to parse XML document.

Reason: invalid literal for int() with base 10: '7000.0'

Traceback (most recent call last):
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/lmgr/", line 1113, in LoadWorkspaceFile
    gxwXml = ProcessWorkspaceFile(etree.parse(filename))
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/", line 58, in __init__
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/", line 149, in __processFile
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/", line 176, in __processLayers
    cmd, selected, vdigit, nviz = self.__processLayer(item)
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/", line 238, in __processLayer
    nviz = self.__processLayerNviz(node_nviz)
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/", line 378, in __processLayerNviz
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/core/", line 443, in __processLayerNvizNode
    value = cast(self.__getNodeText(node_tag, 'value'))
ValueError: invalid literal for int() with base 10: '7000.0'

After deleting the following, the 'Please wait, loading workspace' notice remains visible and layers are not loaded into the 3Dview.


I also notice in the command console, not sure if relevant:

Loading raster map
Translating colors from raster map

Change History (5)

comment:1 by richardc, 11 years ago

Summary: Trouble loading workspace.gxwUnable to load workspace.gxw in 3D View

comment:2 by martinl, 11 years ago

Description: modified (diff)

comment:3 by martinl, 11 years ago

Keywords: nviz workspace added

comment:4 by annakrat, 11 years ago

Should be fixed in r57624 (backported in r57626,7).

comment:5 by annakrat, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.