Opened 5 years ago

Closed 5 years ago

#3906 closed defect (fixed)

g.gui.psmap needs Python upgrade

Reported by: rshepard Owned by: grass-dev@…
Priority: normal Milestone: 7.8.1
Component: wxGUI Version: git-releasebranch78
Keywords: ps.map, wxpython, map composer, gui Cc:
CPU: x86-64 Platform: Linux

Description

Invoking g.gui.map allowed me to define the page and set a vector map limit. When I tried to add a vector map I could not do so. The python trace back is:

g.gui.psmap

/usr/local/grass79/gui/wxpython/psmap/dialogs.py:1236: wxPyDeprecationWarning: Call to deprecated item. Use SetToolTip instead.

_("Region is set to match this map,\nraster or vector map must be added later"))

/usr/local/grass79/gui/wxpython/psmap/dialogs.py:1236: wxPyDeprecationWarning: Call to deprecated item. Use SetToolTip instead.

_("Region is set to match this map,\nraster or vector map must be added later"))

Traceback (most recent call last):

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 1942, in OnProperties

tmpSettings=self.tmpDialogDict[id])

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2140, in init

self.DSpanel = self._DataSelectionPanel(notebook)

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2234, in _DataSelectionPanel

str, self.layers), size=self.spinCtrlSize)

TypeError: Choice(): arguments did not match any overloaded call:

overload 1: too many arguments overload 2: argument 'choices' has unexpected type 'map'

Traceback (most recent call last):

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 1942, in On

Properties

tmpSettings=self.tmpDialogDict[id])

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2140, in init

self.DSpanel = self._DataSelectionPanel(notebook)

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2234, in _DataSelectionPanel

str, self.layers), size=self.spinCtrlSize)

TypeError: Choice(): arguments did not match any overloaded call:

overload 1: too many arguments overload 2: argument 'choices' has unexpected type 'map'

Traceback (most recent call last):

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 1942, in OnProperties

tmpSettings=self.tmpDialogDict[id])

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2140, in init

self.DSpanel = self._DataSelectionPanel(notebook)

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2234, in _DataSelectionPanel

str, self.layers), size=self.spinCtrlSize)

TypeError: Choice(): arguments did not match any overloaded call:

overload 1: too many arguments overload 2: argument 'choices' has unexpected type 'map'

Traceback (most recent call last):

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 1942, in OnProperties

tmpSettings=self.tmpDialogDict[id])

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2140, in init

self.DSpanel = self._DataSelectionPanel(notebook)

File "/usr/local/grass79/gui/wxpython/psmap/dialogs.py", line 2234, in _DataSelectionPanel

str, self.layers), size=self.spinCtrlSize)

TypeError: Choice(): arguments did not match any overloaded call:

overload 1: too many arguments overload 2: argument 'choices' has unexpected type 'map'

Change History (4)

comment:1 by rshepard, 5 years ago

Last line of error traceback fell off:

overload 2: argument 'choices' has unexpected type 'map'

comment:2 by annakrat, 5 years ago

Please test latest master, should be fixed.

in reply to:  2 comment:3 by neteler, 5 years ago

Version: svn-trunkgit-releasebranch78

Replying to annakrat:

Please test latest master, should be fixed.

Backported to relbr78 in https://github.com/OSGeo/grass/commit/1fbaa28646cd8e5418760efb5393949adaf9b8d1

comment:4 by neteler, 5 years ago

Resolution: fixed
Status: newclosed

Tested now with latest GRASS GIS 7.8.dev, works nicely.

Thanks for the fix, closing.

Note: See TracTickets for help on using tickets.