[GRASS-dev] [GRASS GIS] #3906: g.gui.psmap needs Python upgrade

#3906: g.gui.psmap needs Python upgrade
-------------------------------------------------+-------------------------
Reporter: rshepard | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, wxpython, map composer, gui | CPU: x86-64
Platform: Linux |
-------------------------------------------------+-------------------------
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'

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

#3906: g.gui.psmap needs Python upgrade
-----------------------+-------------------------------------------------
  Reporter: rshepard | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: ps.map, wxpython, map composer, gui
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------------------------------

Comment (by rshepard):

Last line of error traceback fell off:

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

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

#3906: g.gui.psmap needs Python upgrade
-----------------------+-------------------------------------------------
  Reporter: rshepard | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: ps.map, wxpython, map composer, gui
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------------------------------

Comment (by annakrat):

Please test latest master, should be fixed.

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

On Thu, Sep 19, 2019 at 3:42 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:
...

I pulled changes from the git repo and configured the build. This are the
results:

checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.

./configure ... --with-freetype --with-freetype-includes=/usr/include/freetype2

That library is found in /usr/include/freetype2/ft2build.h

[rshepard@baetis ~/gis/grass/grass_dev]$ time make
include/Make/Vars.make:1: include/Make/Platform.make: No such file or directory
make: *** No rule to make target 'include/Make/Platform.make'. Stop.

I read another message this morning about the same missing rule for
Platform.make was reported on Scientific Linux.

That was a mis-configuration by the user, a non-problem.

Markus

#3906: g.gui.psmap needs Python upgrade
-----------------------+-------------------------------------------------
  Reporter: rshepard | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: ps.map, wxpython, map composer, gui
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------------------------------
Changes (by neteler):

* version: svn-trunk => git-releasebranch78

Comment:

Replying to [comment:2 annakrat]:
> Please test latest master, should be fixed.

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

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

#3906: g.gui.psmap needs Python upgrade
-----------------------+-------------------------------------------------
  Reporter: rshepard | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Resolution: fixed | Keywords: ps.map, wxpython, map composer, gui
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------------------------------
Changes (by neteler):

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

Comment:

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

Thanks for the fix, closing.

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

On Sun, 22 Sep 2019, Markus Neteler wrote:

./configure ... --with-freetype --with-freetype-includes=/usr/include/freetype2

MarkusN,

That is, and has been, in the configuration file for a long time. And, when
I re-built grass on Friday it completed without error. Why it failed on
Thursday is a mystery.

That was a mis-configuration by the user, a non-problem.

So I read on the mail list.

Best regards,

Rich