Opened 5 years ago
Closed 5 years ago
#4004 closed defect (fixed)
"Add web service layer" broken with Python3
Reported by: | sbl | Owned by: | |
---|---|---|---|
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
Note:
See TracTickets
for help on using tickets.
https://github.com/OSGeo/grass/pull/242