Opened 9 years ago
Last modified 5 years ago
#2978 new defect
g.gui.gmodeler - no python script exported
Reported by: | lfurtkevicova | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | wxGUI | Version: | git-releasebranch78 |
Keywords: | g.gui.gmodeler, python script | Cc: | |
CPU: | x86-64 | Platform: | Unspecified |
Description
I have a model, see attachment, and python editor (python script) is totally empty.
Attachments (1)
Change History (9)
by , 9 years ago
Attachment: | no_python_code.gxm added |
---|
comment:1 by , 9 years ago
Milestone: | 7.0.4 → 7.0.5 |
---|
comment:2 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:3 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
comment:5 by , 5 years ago
Keywords: | g.gui.gmodeler added; gmodeler removed |
---|---|
Milestone: | 7.6.2 → 7.8.1 |
Summary: | g.gui.gmodeler - no python script → g.gui.gmodeler - no python script exported |
Version: | svn-trunk → git-releasebranch78 |
Re-tested in 7.8.git from today:
When using File > Export to Python, only the first lines of the Python script are written, then these errors appear:
GRASS 7.8.1dev (nc_spm_08):~/Downloads > g.gui.gmodeler no_python_code.gxm 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it 14:47:16: Debug: window wxTextCtrl(0x55f34b560c00, ) lost focus even though it didn't have it Traceback (most recent call last): File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/frame.py", line 255, in OnPageChanged self.pythonPanel.RefreshScript() File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/frame.py", line 2140, in RefreshScript WritePythonFile(fd, self.parent.GetModel()) File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/model.py", line 2521, in __init__ self._writePython() File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/model.py", line 2577, in _writePython for flag in item.GetParameterizedParams()['flags']: AttributeError: 'ModelLoop' object has no attribute 'GetParameterizedParams' 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it 14:47:16: Debug: window wxStyledTextCtrl(0x55f34b5af400, ) lost focus even though it didn't have it Traceback (most recent call last): File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/frame.py", line 745, in OnExportPython filename = self.pythonPanel.SaveAs(force=True) File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/frame.py", line 2103, in SaveAs WritePythonFile(fd, self.parent.GetModel()) File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/model.py", line 2521, in __init__ self._writePython() File "/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/model.py", line 2577, in _writePython for flag in item.GetParameterizedParams()['flags']: AttributeError: 'ModelLoop' object has no attribute 'GetParameterizedParams'
comment:8 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Note:
See TracTickets
for help on using tickets.
model without python code