Opened 10 months ago

Closed 8 months ago

#4004 closed defect (fixed)

"Add web service layer" broken with Python3

Reported by: sbl Owned by: grass-dev@…
Priority: major Milestone: 7.8.3
Component: wxGUI Version: svn-trunk
Keywords: Python3, WMS, wxpython Cc:
CPU: Unspecified Platform: All

Description

It seems the "Add web service layer" function in the GUI is broken in both trunk and 7.8 after changes to Python 3.

With changes here: https://github.com/OSGeo/grass/pull/238 r.in.wms works again, but the GUI in layer manager fails With the following error Message:

Traceback (most recent call last):
  File "/opt/src/grass_ninsbl/dist.x86_64-pc-linux-
gnu/gui/wxpython/web_services/widgets.py", line 548, in
OnCapDownloadDone

self._parseCapFile(self.cap_file)
  File "/opt/src/grass_ninsbl/dist.x86_64-pc-linux-
gnu/gui/wxpython/web_services/widgets.py", line 572, in
_parseCapFile

self._updateFormatRadioBox(self.formats_list)
  File "/opt/src/grass_ninsbl/dist.x86_64-pc-linux-
gnu/gui/wxpython/web_services/widgets.py", line 851, in
_updateFormatRadioBox

border=5)
TypeError
:
Sizer.Insert(): arguments did not match any overloaded call:
  overload 1: 'item' is not a valid keyword argument
  overload 2: 'item' is not a valid keyword argument
  overload 3: 'item' is not a valid keyword argument
  overload 4: 'item' is not a valid keyword argument
  overload 5: 'item' is not a valid keyword argument
  overload 6: 'item' is not a valid keyword argument
  overload 7: 'item' is not a valid keyword argument
  overload 8: 'item' is not a valid keyword argument
  overload 9: 'item' is not a valid keyword argument
Traceback (most recent call last):
  File "/opt/src/grass_ninsbl/dist.x86_64-pc-linux-
gnu/gui/wxpython/web_services/widgets.py", line 548, in
OnCapDownloadDone

self._parseCapFile(self.cap_file)
  File "/opt/src/grass_ninsbl/dist.x86_64-pc-linux-
gnu/gui/wxpython/web_services/widgets.py", line 572, in
_parseCapFile

self._updateFormatRadioBox(self.formats_list)
  File "/opt/src/grass_ninsbl/dist.x86_64-pc-linux-
gnu/gui/wxpython/web_services/widgets.py", line 851, in
_updateFormatRadioBox

border=5)
TypeError
:
Sizer.Insert(): arguments did not match any overloaded call:
  overload 1: 'item' is not a valid keyword argument
  overload 2: 'item' is not a valid keyword argument
  overload 3: 'item' is not a valid keyword argument
  overload 4: 'item' is not a valid keyword argument
  overload 5: 'item' is not a valid keyword argument
  overload 6: 'item' is not a valid keyword argument
  overload 7: 'item' is not a valid keyword argument
  overload 8: 'item' is not a valid keyword argument
  overload 9: 'item' is not a valid keyword argument

Change History (5)

comment:2 Changed 10 months ago by neteler

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:3 Changed 10 months ago by neteler

Milestone: 7.8.3

comment:4 Changed 8 months ago by annakrat

Merged to master, needs backporting.

comment:5 Changed 8 months ago by annakrat

Resolution: fixed
Status: newclosed

Already done, closing.

Note: See TracTickets for help on using tickets.