Re: [Beremiz-devel] About the wx problem. (Andrey Skvortsov)

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

Re: [Beremiz-devel] About the wx problem. (Andrey Skvortsov)

gpfrank
Hello! Andrey Skvortsov:
        Thank you very much for your help!
        Now I can add the EtherCAT extend. But I meet another 2 problems.
1) On the Master status page. the "update" button.  the bug report as follows:
-------------------------------------------------------------------------------------------------------
app-title:
beremiz

app-version:
1.2-52afa2dec4fb+

cwd:
/home/imx6/Beremiz/beremiz

date:
Wed Aug 22 16:13:40 2018

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

e-value:
'Loss rate [1/s]'

locals:
    index: '1'
    self: <etherlab.EtherCATManagementEditor.MasterStatePanelClass; proxy of <Swig Object of type 'wxPanel *' at 0x55ff9f022d40> >
    event: <wx._core.CommandEvent; proxy of <Swig Object of type 'wxCommandEvent *' at 0x7ffe0f8734c0> >
    key: 'Loss rate [1/s]'

platform:
Linux-4.15.0-29-generic-x86_64-with-Ubuntu-18.04-bionic

python-version:
2.7.15rc1

self:
    MasterState: {'RemoteExec script failed!': []}
    parent: <wx._windows.ScrolledWindow; proxy of <Swig Object of type 'wxScrolledWindow *' at 0x55ff9f0368c0> >
    this: <Swig Object of type 'wxPanel *' at 0x55ff9f022d40>
    TextCtrl: {'Loss rate [1/s]': {'1': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f14df30> >, '0': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f149c00> >, '2': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f1529d0> >}, 'Tx frames': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f1129e0> >, 'Tx frame rate [1/s]': {'1': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f12e400> >, '0': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f129800> >, '2': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f131b30> >}, 'Active': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f0f5510> >, 'Link': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f10c440> >, 'Rx frames': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f119600> >, 'Slaves': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f0fb1c0> >, 'Frame loss [%]': {'1': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9e4b1270> >, '0': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9e4ab000> >, '2': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9e477100> >}, 'Phase': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f0ed410> >, 'Lost frames': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f121590> >, 'Main': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f103de0> >, 'Rx frame rate [1/s]': {'1': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f13f1b0> >, '0': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f139860> >, '2': <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' at 0x55ff9f144840> >}}
    Controler: <ConfigTreeNode.FinalCTNClass object at 0x7f5f1d0ef050>
    StaticText: {'Loss rate [1/s]': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f147130> >, 'Tx frames': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f10a130> >, 'Tx frame rate [1/s]': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f11dd30> >, 'Active': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9e2e4530> >, 'Link': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f0f8130> >, 'Rx frames': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f1173e0> >, 'Slaves': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f0f8c30> >, 'Frame loss [%]': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9e4a9000> >, 'Phase': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f0a7000> >, 'Lost frames': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f11f7e0> >, 'Main': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f100be0> >, 'Rx frame rate [1/s]': <wx._controls.StaticText; proxy of <Swig Object of type 'wxStaticText *' at 0x55ff9f136900> >}
    StaticBox: {'masterState': <wx._controls.StaticBox; proxy of <Swig Object of type 'wxStaticBox *' at 0x55ff9f0d4910> >, 'deviceInfo': <wx._controls.StaticBox; proxy of <Swig Object of type 'wxStaticBox *' at 0x55ff9f0e6aa0> >, 'frameInfo': <wx._controls.StaticBox; proxy of <Swig Object of type 'wxStaticBox *' at 0x55ff9f0e8170> >}
    MasterStateSizer: {'masterState': <wx._core.StaticBoxSizer; proxy of <Swig Object of type 'wxStaticBoxSizer *' at 0x55ff9f030bc0> >, 'frameInfo': <wx._core.StaticBoxSizer; proxy of <Swig Object of type 'wxStaticBoxSizer *' at 0x55ff9f011300> >, 'innerMain': <wx._core.FlexGridSizer; proxy of <Swig Object of type 'wxFlexGridSizer *' at 0x55ff9f0e1ce0> >, 'innerMasterState': <wx._core.FlexGridSizer; proxy of <Swig Object of type 'wxFlexGridSizer *' at 0x55ff9ef37800> >, 'deviceInfo': <wx._core.StaticBoxSizer; proxy of <Swig Object of type 'wxStaticBoxSizer *' at 0x55ff9f08cf60> >, 'innerFrameInfo': <wx._core.FlexGridSizer; proxy of <Swig Object of type 'wxFlexGridSizer *' at 0x55ff9e681060> >, 'innerTopHalf': <wx._core.FlexGridSizer; proxy of <Swig Object of type 'wxFlexGridSizer *' at 0x55ff9f013200> >, 'innerDeviceInfo': <wx._core.FlexGridSizer; proxy of <Swig Object of type 'wxFlexGridSizer *' at 0x55ff9ef355f0> >, 'main': <wx._core.BoxSizer; proxy of <Swig Object of type 'wxBoxSizer *' at 0x55ff9f0c9da0> >, 'innerBottomHalf': <wx._core.FlexGridSizer; proxy of <Swig Object of type 'wxFlexGridSizer *' at 0x55ff9ef38880> >}
    UpdateButton: <wx._controls.Button; proxy of <Swig Object of type 'wxButton *' at 0x55ff9f0c0cd0> >

traceback:
  File "/home/imx6/Beremiz/beremiz/etherlab/EtherCATManagementEditor.py", line 2203, in OnButtonClick
    self.TextCtrl[key][index].SetValue(self.MasterState[key][int(index)])
<type 'exceptions.KeyError'>: 'Loss rate [1/s]'

wx-platform:
__WXGTK__

wx-version:
3.0.2.0
-------------------------------------------------------------------------------------------------------

2) It will be not bug. may be my runtime problems.
    When I try to use "scan network" button.
    the message window show " error! remoteExec Script failed!"
    the console windows show following messges:
-------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/imx6/Beremiz/beremiz/connectors/PYRO/__init__.py", line 121, in catcher_func
    return func(*args, **kwargs)
  File "/home/imx6/Beremiz/beremiz/connectors/PYRO/__init__.py", line 158, in my_local_func
    return RemotePLCObjectProxy.__getattr__(attrName)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 381, in __call__
    return self.__send(self.__name, args, kwargs)
  File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 456, in _invokePYRO
    return self.adapter.remoteInvocation(name, Pyro.constants.RIF_VarargsAndKeywords, vargs, kargs)
  File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 497, in remoteInvocation
    return self._remoteInvocation(method, flags, *args)
  File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 572, in _remoteInvocation
    answer.raiseEx()
  File "/usr/lib/python2.7/dist-packages/Pyro/errors.py", line 72, in raiseEx
    raise self.excObj
TypeError: RemoteExec() got an unexpected keyword argument 'returnVal'
 +--- This exception occured remotely (Pyro) - Remote traceback:
 | Traceback (most recent call last):
 |   File "usr/lib/python2.7/site-packages/Pyro/protocol.py", line 759, in _handleInvocation2
 |   File "usr/lib/python2.7/site-packages/Pyro/core.py", line 108, in Pyro_dyncall
 | TypeError: RemoteExec() got an unexpected keyword argument 'returnVal'
 +--- End of remote traceback

-------------------------------------------------------------------------------------------------------
For above problems, do you have any suggestions?

Thank you and best regards!
Franklin.




At 2018-08-11 20:06:47, [hidden email] wrote: >Send Beremiz-devel mailing list submissions to > [hidden email] > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/beremiz-devel >or, via email, send a message with subject or body 'help' to > [hidden email] > >You can reach the person managing the list at > [hidden email] > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Beremiz-devel digest..." > > >Today's Topics: > > 1. Re: About the wx problem. (Andrey Skvortsov) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Fri, 10 Aug 2018 18:21:48 +0300 >From: Andrey Skvortsov <[hidden email]> >Cc: [hidden email] >Subject: Re: [Beremiz-devel] About the wx problem. >Message-ID: <[hidden email]> >Content-Type: text/plain; charset="utf-8" > >Hi Franklin, > >I've pushed changes that fix your error in EtherCAT extension, >but I've never used EtherCAT myself and don't have access to any >EtherCAT hardware. So I wish you happy hacking! :-) > > >On 18-08-07 08:21, gpfrank wrote: >> Hello! Andrey Skvortsov: >> Yes, I try to use the EtherCAT extention. >> For the IGH EtherMaster, I can use the C-extenstion to operate the EtherCAT slaves. >> But I must modify the C-extention file when the network changed. I want to study how to >> add new extentsion from EtherCAT. >> >> >> Thank you and best regards! >> Franklin >> > > >-- >Best regards, >Andrey Skvortsov >-------------- next part -------------- >A non-text attachment was scrubbed... >Name: signature.asc >Type: application/pgp-signature >Size: 833 bytes >Desc: not available > >------------------------------ > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >------------------------------ > >Subject: Digest Footer > >_______________________________________________ >Beremiz-devel mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/beremiz-devel > > >------------------------------ > >End of Beremiz-devel Digest, Vol 93, Issue 9 >********************************************


 


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