[Beremiz-devel] (no subject)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Beremiz-devel] (no subject)

Beremiz-Devel mailing list
app-title:
beremiz

app-version:
1.2-1447424a7029

cwd:
/home/master/Development/OpenPLC/beremiz/beremiz

date:
Tue May 30 11:21:52 2017

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'upper'

locals:
    bodytype: None
    self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
    instance_path: u'config.resource0.inst'
    openedidx: None

platform:
Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana

python-version:
2.7.6

self:
    DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
    CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
    TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
    Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
    Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
    LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
    ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
    DrawingMode: 1
    DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
    ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
    this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
    CurrentEditorToolBar: []
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >

traceback:
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
    callback(item_infos)
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
    self.Controller.ComputePouName(infos.type))
  File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
    pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'

wx-platform:
__WXGTK__

wx-version:
2.8.12.1
app-title:
beremiz

app-version:
1.2-1447424a7029

cwd:
/home/master/Development/OpenPLC/beremiz/beremiz

date:
Tue May 30 11:21:52 2017

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'upper'

locals:
    bodytype: None
    self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
    instance_path: u'config.resource0.inst'
    openedidx: None

platform:
Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana

python-version:
2.7.6

self:
    DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
    CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
    TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
    Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
    Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
    LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
    ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
    DrawingMode: 1
    DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
    ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
    this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
    CurrentEditorToolBar: []
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >

traceback:
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
    callback(item_infos)
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
    self.Controller.ComputePouName(infos.type))
  File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
    pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'

wx-platform:
__WXGTK__

wx-version:
2.8.12.1

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] (no subject)

Beremiz-Devel mailing list
Hi Denis,

could you describe your problem and steps to reproduce it.


On 17-05-30 11:56, [hidden email] wrote:

> app-title:
> beremiz
>
> app-version:
> 1.2-1447424a7029
>
> cwd:
> /home/master/Development/OpenPLC/beremiz/beremiz
>
> date:
> Tue May 30 11:21:52 2017
>
> e-type:
> <type 'exceptions.AttributeError'>
>
> e-value:
> 'NoneType' object has no attribute 'upper'
>
> locals:
>     bodytype: None
>     self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
>     instance_category: 11
>     instance_type: 'P::'
>     new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
>     instance_path: u'config.resource0.inst'
>     openedidx: None
>
> platform:
> Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana
>
> python-version:
> 2.7.6
>
> self:
>     DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
>     Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
>     CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
>     FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
>     RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
>     Highlights: {}
>     SelectedItem: None
>     local_runtime_tmpdir: None
>     LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
>     TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
>     HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
>     ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
>     LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
>     TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
>     Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
>     EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
>     TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
>     EnableDebug: True
>     Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
>     runtime_port: None
>     LastToolTipItem: None
>     EditMenuSize: 16
>     PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
>     RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
>     TabsImageListIndexes: {}
>     ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
>     icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
>     CurrentMenu: None
>     AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
>     Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
>     BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
>     SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
>     PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
>     AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
>     ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
>     LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
>     DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
>     LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
>     ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
>     MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
>     LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
>     SearchParams: None
>     LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
>     LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
>     DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
>     FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
>     DrawingMode: 1
>     DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
>     ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
>     this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
>     TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
>     CurrentEditorToolBar: []
>     ConfNodeInfos: {}
>     RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
>     local_runtime: None
>     PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >
>
> traceback:
>   File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
>     callback(item_infos)
>   File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
>     self.Controller.ComputePouName(infos.type))
>   File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
>     pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
> <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'
>
> wx-platform:
> __WXGTK__
>
> wx-version:
> 2.8.12.1
> app-title:
> beremiz
>
> app-version:
> 1.2-1447424a7029
>
> cwd:
> /home/master/Development/OpenPLC/beremiz/beremiz
>
> date:
> Tue May 30 11:21:52 2017
>
> e-type:
> <type 'exceptions.AttributeError'>
>
> e-value:
> 'NoneType' object has no attribute 'upper'
>
> locals:
>     bodytype: None
>     self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
>     instance_category: 11
>     instance_type: 'P::'
>     new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
>     instance_path: u'config.resource0.inst'
>     openedidx: None
>
> platform:
> Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana
>
> python-version:
> 2.7.6
>
> self:
>     DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
>     Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
>     CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
>     FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
>     RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
>     Highlights: {}
>     SelectedItem: None
>     local_runtime_tmpdir: None
>     LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
>     TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
>     HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
>     ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
>     LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
>     TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
>     Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
>     EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
>     TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
>     EnableDebug: True
>     Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
>     runtime_port: None
>     LastToolTipItem: None
>     EditMenuSize: 16
>     PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
>     RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
>     TabsImageListIndexes: {}
>     ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
>     icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
>     CurrentMenu: None
>     AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
>     Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
>     BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
>     SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
>     PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
>     AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
>     ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
>     LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
>     DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
>     LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
>     ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
>     MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
>     LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
>     SearchParams: None
>     LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
>     LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
>     DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
>     FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
>     DrawingMode: 1
>     DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
>     ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
>     this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
>     TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
>     CurrentEditorToolBar: []
>     ConfNodeInfos: {}
>     RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
>     local_runtime: None
>     PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >
>
> traceback:
>   File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
>     callback(item_infos)
>   File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
>     self.Controller.ComputePouName(infos.type))
>   File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
>     pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
> <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'
>
> wx-platform:
> __WXGTK__
>
> wx-version:
> 2.8.12.1

> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot

> _______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel


--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] (no subject)

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list

Hello, Denis! Could you tell me, did you set instance type (accordig to functional block/program you use) for instance "inst" in resource0 ?


30.05.2017 11:56, [hidden email] пишет:
app-title:
beremiz

app-version:
1.2-1447424a7029

cwd:
/home/master/Development/OpenPLC/beremiz/beremiz

date:
Tue May 30 11:21:52 2017

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'upper'

locals:
    bodytype: None
    self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
    instance_path: u'config.resource0.inst'
    openedidx: None

platform:
Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana

python-version:
2.7.6

self:
    DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
    CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
    TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
    Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
    Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
    LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
    ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
    DrawingMode: 1
    DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
    ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
    this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
    CurrentEditorToolBar: []
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >

traceback:
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
    callback(item_infos)
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
    self.Controller.ComputePouName(infos.type))
  File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
    pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'

wx-platform:
__WXGTK__

wx-version:
2.8.12.1
app-title:
beremiz

app-version:
1.2-1447424a7029

cwd:
/home/master/Development/OpenPLC/beremiz/beremiz

date:
Tue May 30 11:21:52 2017

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'upper'

locals:
    bodytype: None
    self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
    instance_path: u'config.resource0.inst'
    openedidx: None

platform:
Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana

python-version:
2.7.6

self:
    DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
    CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
    TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
    Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
    Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
    LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
    ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
    DrawingMode: 1
    DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
    ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
    this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
    CurrentEditorToolBar: []
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >

traceback:
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
    callback(item_infos)
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
    self.Controller.ComputePouName(infos.type))
  File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
    pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'

wx-platform:
__WXGTK__

wx-version:
2.8.12.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

--
Best regards, Sergey Surkov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] (no subject)

Beremiz-Devel mailing list

Hi,

I set value in debug -> Force value. But I think problem is that I use wx-version: 2.8.12.1 and not 3.0. I will try also in 3.0 version.

Best regards.


On 05/30/2017 03:25 PM, [hidden email] wrote:

Hello, Denis! Could you tell me, did you set instance type (accordig to functional block/program you use) for instance "inst" in resource0 ?


30.05.2017 11:56, [hidden email] пишет:
app-title:
beremiz

app-version:
1.2-1447424a7029

cwd:
/home/master/Development/OpenPLC/beremiz/beremiz

date:
Tue May 30 11:21:52 2017

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'upper'

locals:
    bodytype: None
    self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
    instance_path: u'config.resource0.inst'
    openedidx: None

platform:
Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana

python-version:
2.7.6

self:
    DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
    CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
    TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
    Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
    Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
    LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
    ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
    DrawingMode: 1
    DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
    ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
    this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
    CurrentEditorToolBar: []
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >

traceback:
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
    callback(item_infos)
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
    self.Controller.ComputePouName(infos.type))
  File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
    pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'

wx-platform:
__WXGTK__

wx-version:
2.8.12.1
app-title:
beremiz

app-version:
1.2-1447424a7029

cwd:
/home/master/Development/OpenPLC/beremiz/beremiz

date:
Tue May 30 11:21:52 2017

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'upper'

locals:
    bodytype: None
    self: <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb0cc050> >
    instance_path: u'config.resource0.inst'
    openedidx: None

platform:
Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana

python-version:
2.7.6

self:
    DisplayMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6f4b8> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb148538c>
    CTR: <ProjectController.ProjectController instance at 0xb170ae2c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xabb9c48> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xaa5bd10> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xad93840> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaab1188> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6fcb0> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xaab9a40> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xad099a8> >
    TreeImageDict: {0: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 11, 9: 12, 10: 13, 11: 14, 12: 22, 13: 23, 14: 24, 15: 25, 16: 26, 17: 15, 18: 16, 19: 17, 20: 18, 21: 19, 22: 20, 23: 21, 25: 27, 'LD': 3, 'IL': 0, 'ST': 1, 'FBD': 2, 'SFC': 4}
    Panes: {'MenuToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab1e3c0> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xacf99c0> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xab222f8> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xaa5bf08> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xacfe710> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0x9f7bce8> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xaad8210> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c8d0> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xacfa7b8> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xaa77148> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xaf72958> >]
    Controler: <ProjectController.ProjectController instance at 0xb170ae2c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa3c60> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xad067d0> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xaa751d8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >
    LocationImageDict: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5}
    ConfNodeMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6c800> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab2fa28> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaab7d10> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xab45608> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xab978b0> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xac80218> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xabd3e00> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa030800> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb16f0f44>, 3: <function DeleteElementFunction at 0xb16f0f7c>, 4: <function DeleteElementFunction at 0xb16f0fb4>, 5: <function DeleteElementFunction at 0xb148d02c>, 6: <function DeleteElementFunction at 0xb148d064>, 7: <function DeleteElementFunction at 0xb16f0ca4>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xab6da88> >
    DrawingMode: 1
    DefaultPerspective: {'notebooks': {'leftnotebook': {'size': (298, 512), 'pos': (1, 1), 'pages': [(('main', 'ProjectPanel'), True)]}, 'rightnotebook': {'size': (248, 218), 'pos': (1, 1), 'pages': [(('main', 'LibraryPanel'), True), (('main', 'DebugVariablePanel'), False)]}, 'bottomnotebook': {'size': (689, 268), 'pos': (1, 1), 'pages': [(('main', 'SearchResultPanel'), True), (('main', 'LogConsole'), False), (('main', 'LogViewer'), False)]}}, 'perspective': u'layout2|name=ProjectPane;caption=;state=2044;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=500;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ResultPane;caption=;state=2044;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=800;besth=300;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=LibraryPane;caption=;state=2044;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=400;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=TabsPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=20;besth=20;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MenuToolBar;caption=\u041c\u0435\u043d\u044e;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=418;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=EditorToolBar;caption=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432;state=2108144;dir=1;layer=10;row=0;pos=448;prop=100000;bestw=42;besth=44;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=StatusToolBar;caption=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u0430;state=2108144;dir=1;layer=10;row=0;pos=429;prop=100000;bestw=8;besth=8;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,1,0)=302|dock_size(3,0,0)=289|dock_size(2,0,0)=252|dock_size(5,0,0)=22|dock_size(1,10,0)=46|'}
    ProgressStatusBar: <wx._controls.Gauge; proxy of <Swig Object of type 'wxGauge *' at 0xacfbaa0> >
    this: <Swig Object of type 'wxFrame *' at 0xaa5bd10>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaa0b3e0> >
    CurrentEditorToolBar: []
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xaaa9a60> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xad068c0> >

traceback:
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 443, in OnVariablesListLeftDown
    callback(item_infos)
  File "/home/master/Development/OpenPLC/beremiz/beremiz/controls/PouInstanceVariablesPanel.py", line 346, in DebugButtonCallback
    self.Controller.ComputePouName(infos.type))
  File "/home/master/Development/OpenPLC/beremiz/beremiz/IDEFrame.py", line 2015, in OpenDebugViewer
    pou_type = self.Controler.GetEditedElementType(instance_type, True)[1].upper()
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'upper'

wx-platform:
__WXGTK__

wx-version:
2.8.12.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

--
Best regards, Sergey Surkov


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

--

Denis Poropat
R&D SW, SMARTEH d.o.o.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] (no subject)

Beremiz-Devel mailing list
On 17-05-30 15:48, [hidden email] wrote:
> Hi,
>
> I set value in debug -> Force value. But I think problem is that I use
> wx-version: 2.8.12.1 and not 3.0. I will try also in 3.0 version.
2.8 should be ok.

Have you done this offline?
Could you please attach your project.


> Best regards.
>
>
> On 05/30/2017 03:25 PM, [hidden email] wrote:
> >
> > Hello, Denis! Could you tell me, did you set instance type (accordig to
> > functional block/program you use) for instance "inst" in resource0 ?
> >
> >
> > 30.05.2017 11:56, [hidden email] пишет:
> > > app-title:
> > > beremiz
> > >
> > > app-version:
> > > 1.2-1447424a7029
> > >
> > > cwd:
> > > /home/master/Development/OpenPLC/beremiz/beremiz
> > >
> > > date:
> > > Tue May 30 11:21:52 2017
> > >
> > > e-type:
> > > <type 'exceptions.AttributeError'>
> > >
> > > e-value:
> > > 'NoneType' object has no attribute 'upper'
> > >
> > > locals:
> > >     bodytype: None
> > >     self: <BeremizIDE.Beremiz; proxy of <Swig Object of type
> > > 'wxFrame *' at 0xaa5bd10> >
> > >     instance_category: 11
> > >     instance_type: 'P::'
> > >     new_window: <editors.TextViewer.TextViewer; proxy of <Swig
> > > Object of type 'wxSplitterWindow *' at 0xb0cc050> >
> > >     instance_path: u'config.resource0.inst'
> > >     openedidx: None
> > >
> > > platform:
> > > Linux-3.13.0-24-generic-i686-with-LinuxMint-17-qiana
> > >
> > > python-version:
> > > 2.7.6
> > >


--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Loading...