Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] wxGUI: SaveToFile() missing 1 required positional argument #1636

Closed
neteler opened this issue Jun 11, 2021 · 0 comments · Fixed by #1637
Closed

[Bug] wxGUI: SaveToFile() missing 1 required positional argument #1636

neteler opened this issue Jun 11, 2021 · 0 comments · Fixed by #1637
Assignees
Labels
bug Something isn't working GUI wxGUI related
Milestone

Comments

@neteler
Copy link
Member

neteler commented Jun 11, 2021

Describe the bug

Trying to save current workspace to file leads to

Traceback (most recent call last):
  File "/home/mneteler/software/grass_master/dist.x86_64-pc-
linux-gnu/gui/wxpython/lmgr/frame.py", line 2186, in
OnCloseWindowOrExit

self._closeWindow(event)
  File "/home/mneteler/software/grass_master/dist.x86_64-pc-
linux-gnu/gui/wxpython/lmgr/frame.py", line 2200, in
_closeWindow

if not self.workspace_manager.CanClosePage(caption=_("Quit
GRASS GUI")):
  File "/home/mneteler/software/grass_master/dist.x86_64-pc-
linux-gnu/gui/wxpython/lmgr/workspace.py", line 476, in
CanClosePage

self.SaveToFile()
TypeError
:
SaveToFile() missing 1 required positional argument:
'filename'

To Reproduce
Steps to reproduce the behavior:

  1. Start GRASS GIS 8 with GUI
  2. open map
  3. quit GRASS GIS, it will open the "Do you want to save changes in the workspace?"
  4. See error

Expected behavior
Should actually save the workspace.

System description (please complete the following information):

  • Operating System: Fedora 33
  • GRASS GIS version
g.version -rge
version=8.0.dev
date=2021
revision=151e0a6d5
build_date=2021-06-05
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=ae610b8da
libgis_date=2021-05-31T19:09:50+00:00
proj=6.3.2
gdal=3.1.4
geos=3.8.1
sqlite=3.34.1

python3 -c "import sys, wx; print(sys.version); print(wx.version())"
3.9.5 (default, May 14 2021, 00:00:00) 
[GCC 10.3.1 20210422 (Red Hat 10.3.1-1)]
4.0.7 gtk3 (phoenix) wxWidgets 3.0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants