[Beremiz-devel] Error while linking FBD in project resources

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

[Beremiz-devel] Error while linking FBD in project resources

Beremiz-Devel mailing list
First of all, sorry about my previous messages without topic definition.

So, I got an error by steps below:
1. Created new project;
2. Added FBD programm as Functional-block  (and that's was an error!)
3. Filled very simple scheme: input - TP (T#200ms) - out
4. When I tryed to make instance from FBD programm (added as functional block), I seen error report with recomendation to send to mailing-list.

Ok, it is my workflow error, but even so that's an error report:

app-title:
beremiz

app-version:
1.2-1447424a7029+

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

date:
Wed May 31 10:27:45 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 0xa8451c0> >
    instance_category: 11
    instance_type: 'P::'
    new_window: <editors.TextViewer.TextViewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xb025100> >
    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 0xa93e270> >
    Log: <BeremizIDE.LogPseudoFile instance at 0xb14c53cc>
    CTR: <ProjectController.ProjectController instance at 0xb14e1f0c>
    FindDialog: <dialogs.FindInPouDialog.FindInPouDialog; proxy of <Swig Object of type 'wxDialog *' at 0xa988d58> >
    RefreshFunctions: {0: <bound method Beremiz.RefreshTitle of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 1: <bound method Beremiz.RefreshEditorToolBar of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 2: <bound method Beremiz.RefreshFileMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 3: <bound method Beremiz.RefreshEditMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 4: <bound method Beremiz.RefreshDisplayMenu of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 5: <bound method Beremiz.RefreshProjectTree of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 6: <bound method Beremiz.RefreshPouInstanceVariablesPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 7: <bound method Beremiz.RefreshLibraryPanel of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 8: <bound method Beremiz.RefreshScaling of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>, 9: <bound method Beremiz.RefreshPageTitles of <BeremizIDE.Beremiz; proxy of <Swig Object of type 'wxFrame *' at 0xa8451c0> >>}
    Highlights: {}
    SelectedItem: None
    local_runtime_tmpdir: None
    LastPanelSelected: <editors.ResourceEditor.ResourceEditor; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xaf929b0> >
    TabsOpened: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa87fb10> >
    HelpMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xa93ea78> >
    ProjectTree: <controls.CustomTree.CustomTree; proxy of <Swig Object of type 'wxPyScrolledWindow *' at 0xa8883b8> >
    LocationImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaaa8e20> >
    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 0xa8ed130> >, 'StatusToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xaa9bb18> >, 'EditorToolBar': <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 0xa8f1078> >}
    EditMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xa8179d8> >
    TreeImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0xaaa17b0> >
    EnableDebug: True
    Config: <wx._misc.ConfigBase; proxy of <Swig Object of type 'wxConfigBase *' at 0xa7db9f0> >
    runtime_port: None
    LastToolTipItem: None
    EditMenuSize: 16
    PouInstanceVariablesPanel: <controls.PouInstanceVariablesPanel.PouInstanceVariablesPanel; proxy of <Swig Object of type 'wxPanel *' at 0xa8a9420> >
    RecentProjectsMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xa93b558> >
    TabsImageListIndexes: {}
    ConnectionStatusBar: <controls.EnhancedStatusBar.EnhancedStatusBar; proxy of <Swig Object of type 'wxStatusBar *' at 0xaa9cf90> >
    icon: <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0xa81f4d0> >
    CurrentMenu: None
    AuiTabCtrl: [<wx.aui.AuiTabCtrl; proxy of <Swig Object of type 'wxAuiTabCtrl *' at 0xada34f0> >]
    Controler: <ProjectController.ProjectController instance at 0xb14e1f0c>
    BottomNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa872b30> >
    SearchResultPanel: <controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xa8fe6e8> >
    PrintData: <wx._windows.PrintData; proxy of <Swig Object of type 'wxPrintData *' at 0xaaa7ec8> >
    AUIManager: <wx.aui.AuiManager; proxy of <Swig Object of type 'wxAuiManager *' at 0xa7fcbb8> >
    ProjectPanel: <wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xa8866f8> >
    LibraryPanel: <controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xa914240> >
    DebugVariablePanel: <controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xa966a88> >
    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 0xa93a508> >
    MainTabs: {'LogViewer': (<controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xaa61718> >, u'\u041b\u043e\u0433 \u041f\u041b\u041a'), 'LogConsole': (<controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xaa65a50> >, u'\u041a\u043e\u043d\u0441\u043e\u043b\u044c'), 'SearchResultPanel': (<controls.SearchResultPanel.SearchResultPanel; proxy of <Swig Object of type 'wxPanel *' at 0xa8fe6e8> >, u'\u041f\u043e\u0438\u0441\u043a'), 'ProjectPanel': (<wx._windows.SplitterWindow; proxy of <Swig Object of type 'wxSplitterWindow *' at 0xa8866f8> >, u'\u041f\u0440\u043e\u0435\u043a\u0442'), 'LibraryPanel': (<controls.LibraryPanel.LibraryPanel; proxy of <Swig Object of type 'wxPanel *' at 0xa914240> >, u'\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438'), 'DebugVariablePanel': (<controls.DebugVariablePanel.DebugVariablePanel.DebugVariablePanel; proxy of <Swig Object of type 'wxPanel *' at 0xa966a88> >, u'\u041e\u0442\u043b\u0430\u0434\u0447\u0438\u043a')}
    LogViewer: <controls.LogViewer.LogViewer; proxy of <Swig Object of type 'wxPanel *' at 0xaa61718> >
    SearchParams: None
    LogConsole: <controls.CustomStyledTextCtrl.CustomStyledTextCtrl; proxy of <Swig Object of type 'wxStyledTextCtrl *' at 0xaa65a50> >
    LeftNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa82e808> >
    DeleteFunctions: {1: <function DeleteElementFunction at 0xb14cd02c>, 3: <function DeleteElementFunction at 0xb14cd064>, 4: <function DeleteElementFunction at 0xb14cd09c>, 5: <function DeleteElementFunction at 0xb14cd0d4>, 6: <function DeleteElementFunction at 0xb14cd10c>, 7: <function DeleteElementFunction at 0xb1730d4c>}
    FileMenu: <wx._core.Menu; proxy of <Swig Object of type 'wxMenu *' at 0xa93c840> >
    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 0xaa9dc30> >
    this: <Swig Object of type 'wxFrame *' at 0xa8451c0>
    TabsImageList: <wx._gdi.ImageList; proxy of <Swig Object of type 'wxImageList *' at 0x9d49180> >
    CurrentEditorToolBar: [199, 183, 188, 190, 191, 184, 185, 186]
    ConfNodeInfos: {}
    RightNoteBook: <wx.aui.AuiNotebook; proxy of <Swig Object of type 'wxAuiNotebook *' at 0xa878408> >
    local_runtime: None
    PageSetupData: <wx._windows.PageSetupDialogData; proxy of <Swig Object of type 'wxPageSetupDialogData *' at 0xaaa7fd8> >

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
Loading...