Met4FoF / connect-agentMET4FOF-smartupunit

Connecting the Smartup unit sensors in WP1 with agent framework in WP2. Developed as part of MET4FOF project.
2 stars 0 forks source link

connect_agents_smartupuint_v2.py charshes on start up with broken piepe #1

Open BeSeeTek opened 4 years ago

BeSeeTek commented 4 years ago

in Function

    def _pyroInvoke(self, methodname, vargs, kwargs, flags=0, objectId=None):

in site-packages/Pyro4/core.py at position

                    if msg.flags & message.FLAGS_EXCEPTION:
                        if sys.platform == "cli":
                            util.fixIronPythonExceptionForPickle(data, False)
                        raise data  # if you see this in your traceback, you should probably inspect the remote traceback as well

an broken pipe error occures on start up

PyDev console: starting.
Python 3.7.5 (default, Apr 19 2020, 20:18:17) 
[GCC 9.2.1 20191008] on linux
>>> runfile('/home/benedikt/connect-agentMET4FOF-smartupunit/connect_agents_smartupunit_v2.py', wdir='/home/benedikt/connect-agentMET4FOF-smartupunit')
/home/benedikt/connect-agentMET4FOF-smartupunit/datareceiver
Dashboard is running on: 127.0.0.1:8050
----------------------------------------------------
 EXCEPTION <class 'BrokenPipeError'>: [Errno 32] Broken pipe
 Extended stacktrace follows (most recent call last)
----------------------------------------------------
File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/osbrain/proxy.py", line 219, in Proxy._pyroInvoke
Source code:
    methodname, args, kwargs, flags, objectId)
----------------------------------------------------
File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/osbrain/proxy.py", line 263, in Proxy._remote_call
Source code:
    flags=flags, objectId=objectId)
Local values:
    __class__ = <class 'osbrain.proxy.Proxy'>
    args = ()
    flags = 0
    kwargs = {'name': ' ', 'agentType': <class '__main__.WP1_SensorAgent'>, 'log_mode': False, 'memory_buffer_size': 1000000, 'ip_addr': '127.0.0.1'}
    methodname = 'add_module'
    objectId = None
    safe_args = ['add_module']
    self = <osbrain.proxy.Proxy at 0x7f41a9ba8a50; connected IPv4; for PYRONAME:AgentController@127.0.0.1:3333>
        self._pyroUri = <Pyro4.core.URI at 0x7f41a9ba8790; PYRONAME:AgentController@127.0.0.1:3333>
        self._pyroConnection = <Pyro4.socketutil.SocketConnection object at 0x7f41a9bc3f50>
        self._pyroSerializer = None
        self._pyroMethods = {'send', 'send_output', 'log_debug', 'generate_module_name_byType', 'shutdown', 'reset', 'raise_exception', 'run', 'log_info', 'after', 'update_data_memory', 'set_method', 'ping', 'kill', 'execute_as_method', 'pack_data', 'stop_all_timers', 'get_latest_edges', 'agents', 'log_ML', 'close', 'bind', 'generate_module_name_byUnique', 'close_all', 'unbind_output', 'each', 'add_module', 'connect', 'has_socket', 'on_received_message', 'get_attr', 'recv', 'get_networkx', 'log_warning', 'on_init', 'unsubscribe', 'execute_as_function', 'get_all_attr', 'stop_agent_loop', 'get_agentType_count', 'safe_call', 'send_plot', 'get_agent_name_count', 'init_parameters', 'is_running', 'bind_output', 'init_agent_loop', 'before_loop', 'stop_timer', 'send_recv', 'handle_process_data', 'list_timers', 'set_attr', 'subscribe', 'set_logger', 'update_networkx', 'log_error', 'idle', 'stop', 'addr', 'agent_loop'}
        self._pyroAttrs = set()
        self._pyroOneway = {'run'}
        self._pyroSeq = 2
        self._pyroRawWireResponse = False
        self._pyroHandshake = 'hello'
        self._pyroMaxRetries = 0
        self._Proxy__pyroHmacKey = None
        self._Proxy__pyroTimeout = 0.0
        self._Proxy__pyroConnLock = <unlocked _thread.RLock object owner=0 count=0 at 0x7f41f2dfbf90>
        self._Proxy__async = False
        self._default_safe = True
        self._safe = True
        self._next_oneway = False
----------------------------------------------------
File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/core.py", line 476, in Proxy._pyroInvoke
Source code:
    raise data  # if you see this in your traceback, you should probably inspect the remote traceback as well
Local values:
    annotations = {}
    compressed = False
    data = BrokenPipeError(32, 'Broken pipe')
    flags = 0
    kwargs = {'name': ' ', 'agentType': <class '__main__.WP1_SensorAgent'>, 'log_mode': False, 'memory_buffer_size': 1000000, 'ip_addr': '127.0.0.1'}
    methodname = 'safe_call'
    msg = <Pyro4.message.Message at 7f41a9ba6750; type=5 flags=1 seq=2 datasize=45437 #ann=0>
    objectId = 'obj_dbf0b80e11de4434af984d1df424da6f'
    self = <osbrain.proxy.Proxy at 0x7f41a9ba8a50; connected IPv4; for PYRONAME:AgentController@127.0.0.1:3333>
        self._pyroUri = <Pyro4.core.URI at 0x7f41a9ba8790; PYRONAME:AgentController@127.0.0.1:3333>
        self._pyroConnection = <Pyro4.socketutil.SocketConnection object at 0x7f41a9bc3f50>
        self._pyroSerializer = None
        self._pyroMethods = {'send', 'send_output', 'log_debug', 'generate_module_name_byType', 'shutdown', 'reset', 'raise_exception', 'run', 'log_info', 'after', 'update_data_memory', 'set_method', 'ping', 'kill', 'execute_as_method', 'pack_data', 'stop_all_timers', 'get_latest_edges', 'agents', 'log_ML', 'close', 'bind', 'generate_module_name_byUnique', 'close_all', 'unbind_output', 'each', 'add_module', 'connect', 'has_socket', 'on_received_message', 'get_attr', 'recv', 'get_networkx', 'log_warning', 'on_init', 'unsubscribe', 'execute_as_function', 'get_all_attr', 'stop_agent_loop', 'get_agentType_count', 'safe_call', 'send_plot', 'get_agent_name_count', 'init_parameters', 'is_running', 'bind_output', 'init_agent_loop', 'before_loop', 'stop_timer', 'send_recv', 'handle_process_data', 'list_timers', 'set_attr', 'subscribe', 'set_logger', 'update_networkx', 'log_error', 'idle', 'stop', 'addr', 'agent_loop'}
        self._pyroAttrs = set()
        self._pyroOneway = {'run'}
        self._pyroSeq = 2
        self._pyroRawWireResponse = False
        self._pyroHandshake = 'hello'
        self._pyroMaxRetries = 0
        self._Proxy__pyroHmacKey = None
        self._Proxy__pyroTimeout = 0.0
        self._Proxy__pyroConnLock = <unlocked _thread.RLock object owner=0 count=0 at 0x7f41f2dfbf90>
        self._Proxy__async = False
        self._default_safe = True
        self._safe = True
        self._next_oneway = False
    serializer = <Pyro4.util.CloudpickleSerializer object at 0x7f41ca324f50>
    vargs = ['add_module']
----------------------------------------------------
 EXCEPTION <class 'BrokenPipeError'>: [Errno 32] Broken pipe
----------------------------------------------------
 +--- This exception occured remotely (Pyro) - Remote traceback:
 | ----------------------------------------------------
 |  EXCEPTION <class 'BrokenPipeError'>: [Errno 32] Broken pipe
 |  Extended stacktrace follows (most recent call last)
 | ----------------------------------------------------
 | File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/core.py", line 1376, in Daemon.handleRequest
 | Source code:
 |     objId, method, vargs, kwargs = serializer.deserializeCall(msg.data, compressed=msg.flags & message.FLAGS_COMPRESSED)
 | ----------------------------------------------------
 | File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/util.py", line 186, in CloudpickleSerializer.deserializeCall
 | Source code:
 |     return self.loadsCall(data)
 | Local values:
 |     compressed = 0
 |     data = b'\x80\x04\x95}\x08\x00\x00\x00\x00\x00\x00(\x8c$obj_dbf0b80e11de4434af984d1df424da6f\x94\x8c\tsafe_call\x94]\x94\x8c\nadd_module\x94a}\x94(\x8c\x04name\x94\x8c\x01 \x94\x8c\tagentType\x94\x8c\x17cloudpickle.cloudpickle\x94\x8c\x19_rehydrate_skeleton_class\x94\x93\x94(h\x08\x8c\x14_make_skeleton_class\x94\x93\x94(\x8c\x08builtins\x94\x8c\x04type\x94\x93\x94\x8c\x0fWP1_SensorAgent\x94\x8c\x13agentMET4FOF.agents\x94\x8c\x0cAgentMET4FOF\x94\x93\x94\x85\x94}\x94\x8c\x07__doc__\x94Ns\x8c e097a8ac968c442c9d79dbed8b50fb33\x94Nt\x94R\x94}\x94(\x8c\n__module__\x94\x8c\x08__main__\x94\x8c\x0finit_parameters\x94h\x08\x8c\x0e_fill_function\x94\x93\x94(h\x08\x8c\x0f_make_skel_func\x94\x93\x94h\x08\x8c\r_builtin_type\x94\x93\x94\x8c\x08CodeType\x94\x85\x94R\x94(K\x03K\x00K\x05K\x06KCCht\x00d\x01d\x02\x83\x02}\x03t\x01\xa0\x02d\x03\xa1\x01\x01\x00t\x03|\x03j\x04\xa0\x05\xa1\x00\x83\x01d\x04\x19\x00}\x04|\x00\xa0\x06d\x05t\x07|\x03j\x04|\x04\x19\x00\x83\x01\x17\x00d\x06\x17\x00\xa1\x01\x01\x00t\x08|\x01\x83\x01|\x00_\t|\x03j\x04|\x04\x19\x00\xa0\n|\x00j\x0b\xa1\x01\x01\x00|\x02|\x00_\x0cd\x00S\x00\x94(N\x8c\r192.168.0.200\x94M\xe6\x1dK\nK\x00\x8c\x0fFirst sensor is\x94\x8c\x18 binding generic plotter\x94t\x94(\x8c\x0cDataReceiver\x94\x8c\x04time\x94\x8c\x05sleep\x94\x8c\x04list\x94\x8c\nAllSensors\x94\x8c\x04keys\x94\x8c\x08log_info\x94\x8c\x03str\x94\x8c\x0egenericPlotter\x94\x8c\x02GP\x94\x8c\x0bSetCallback\x94\x8c\x0fsensor_callback\x94\x8c\tplot_mode\x94t\x94(\x8c\x04self\x94\x8c\rbuffer_length\x94h8\x8c\x02DR\x94\x8c\rfirstSensorId\x94t\x94\x8cP/home/benedikt/connect-agentMET4FOF-smartupunit/connect_agents_smartupunit_v2.py\x94h\x1dKVC\x10\x00\x01\n\x01\n\x01\x12\x01\x04\x03\x18\x02\n\x01\x12\x01\x94))t\x94R\x94J\xff\xTraceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/benedikt/pycharm-2020.1/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
ff\xff\xff}\x94(\x8c\x0b__package__\x94N\x8c\x08__name__\x94h\x1c\x8c\x08__file__\x94h?u\x87\x94R\x94}\x94(\x8c\x07globals\x94}\x94(h-h\x08\x8c\tsubimport\x94\x93\x94\x8c\x04time\x94\x85\x94R\x94h4\x8c\x13MET4FOFDataReceiver\x94h4\x93\x94h,hQh,\x93\x94u\x8c\x08defaults\x94Kd\x8c\x06plotly\x94\x86\x94\x8c\x04dict\x94}\x94\x8c\x0eclosure_values\x94N\x8c\x06module\x94h\x1ch\x05h\x1d\x8c\x03doc\x94N\x8c\x17_cloudpickle_submodules\x94]\x94\x8c\x0bannotations\x94}\x94\x8c\x08qualname\x94\x8c\x1fWP1_SensorAgent.init_parameters\x94\x8c\nkwdefaults\x94NutR\x8c\x0bplot_random\x94h\x1f(h!h&(K\x01K\x00K\x04K\x05KCC<t\x00\xa0\x01d\x01d\x02\xa1\x02\\\x02}\x01\\\x02}\x02}\x03|\x02\xa0\x02t\x03j\x04\xa0\x05d\x03\xa1\x01\xa1\x01\x01\x00|\x03\xa0\x02t\x03j\x04\xa0\x05d\x03\xa1\x01\xa1\x01\x01\x00|\x01S\x00\x94(NK\x02K\x01Kdt\x94(\x8c\x03plt\x94\x8c\x08subplots\x94\x8c\x04plot\x94\x8c\x02np\x94\x8c\x06random\x94\x8c\x06sample\x94t\x94(h:\x8c\x03fig\x94\x8c\x03ax1\x94\x8c\x03ax2\x94t\x94h?hcKhC\x08\x00\x01\x14\x01\x12\x01\x12\x01\x94))t\x94R\x94J\xff\xff\xff\xffhC\x87\x94R\x94}\x94(hJ}\x94(hihM\x8c\x05numpy\x94\x85\x94R\x94hfhM\x8c\x11matplotlib.pyplot\x94\x85\x94R\x94uhTNhW}\x94hYNhZh\x1ch\x05hch[Nh\\]\x94hM\x8c\x0cnumpy.random\x94\x85\x94R\x94ah^}\x94h`\x8c\x1bWP1_SensorAgent.plot_random\x94hbNutRh7h\x1f(h!h&(K\x03K\x00K\x03K\x04KCC\x94|\x00j\x00d\x01k\x02r\x90|\x00j\x01j\x02d\x02k\x02r$t\x03\xa0\x04|\x02\xa1\x01|\x00j\x01_\x05|\x00j\x01j\x02|\x00j\x01j\x06k\x00rR|\x00j\x01\xa0\x07|\x01\xa1\x01\x01\x00|\x00j\x01j\x02d\x03\x17\x00|\x00j\x01_\x02n>|\x00j\x01\xa0\x08\xa1\x00\\\x02|\x00j\x01_\t|\x00j\x01_\n|\x00j\x01\xa0\x0b\xa1\x00\x01\x00|\x00j\x01\xa0\x0c\xa1\x00\x01\x00|\x00j\r|\x00j\x01j\t|\x00j\x0ed\x04\x8d\x02\x01\x00d\x00S\x00\x94(N\x8c\x07Running\x94K\x00K\x01hm\x8c\x04mode\x94\x86\x94t\x94(\x8c\rcurrent_state\x94h5\x8c\rDatasetpushed\x94\x8c\x04copy\x94\x8c\x08deepcopy\x94\x8c\x0bDescription\x94\x8c\x0cBufferLength\x94\x8c\x08update_Y\x94\x8c\x08setUpFig\x94hm\x8c\x02ax\x94\x8c\x0bupdate_plot\x94\x8c\x0cempty_buffer\x94\x8c\tsend_plot\x94h8t\x94h:\x8c\x07message\x94h\x8e\x87\x94h?h7KnC\x14\x00\x01\n\x01\x0c\x01\x0e\x02\x10\x01\x0c\x01\x12\x02\x16\x01\n\x01\n\x01\x94))t\x94R\x94J\xff\xff\xff\xffhC\x87\x94R\x94}\x94(hJ}\x94h\x8chMh\x8c\x85\x94R\x94shTNhW}\x94hYNhZh\x1ch\x05h7h[Nh\\]\x94h^}\x94h`\x8c\x1fWP1_SensorAgent.sensor_callback\x94hbNutRutR\x8c\x08log_mode\x94\x89\x8c\x12memory_buffer_size\x94J@B\x0f\x00\x8c\x07ip_addr\x94\x8c\t127.0.0.1\x94ut\x94.'
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
 |     self = <Pyro4.util.CloudpickleSerializer object at 0x7fa1877aed50>
  File "/home/benedikt/pycharm-2020.1/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
 | ----------------------------------------------------
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
 | File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/util.py", line 481, in CloudpickleSerializer.loadsCall
  File "/home/benedikt/connect-agentMET4FOF-smartupunit/connect_agents_smartupunit_v2.py", line 129, in <module>
 | Source code:
    gen_agent = agentNetwork.add_agent(agentType= WP1_SensorAgent, log_mode=False)
 |     return cloudpickle.loads(data)
  File "/home/benedikt/connect-agentMET4FOF-smartupunit/agentMET4FOF/agentMET4FOF/agents.py", line 1007, in add_agent
    agent = self._get_controller().add_module(name=name, agentType= agentType, log_mode=log_mode, memory_buffer_size=memory_buffer_size,ip_addr=ip_addr)
  File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/core.py", line 185, in __call__
    return self.__send(self.__name, args, kwargs)
 | Local values:
  File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/osbrain/proxy.py", line 219, in _pyroInvoke
    methodname, args, kwargs, flags, objectId)
  File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/osbrain/proxy.py", line 263, in _remote_call
 |     data = b'\x80\x04\x95}\x08\x00\x00\x00\x00\x00\x00(\x8c$obj_dbf0b80e11de4434af984d1df424da6f\x94\x8c\tsafe_call\x94]\x94\x8c\nadd_module\x94a}\x94(\x8c\x04name\x94\x8c\x01 \x94\x8c\tagentType\x94\x8c\x17cloudpickle.cloudpickle\x94\x8c\x19_rehydrate_skeleton_class\x94\x93\x94(h\x08\x8c\x14_make_skeleton_class\x94\x93\x94(\x8c\x08builtins\x94\x8c\x04type\x94\x93\x94\x8c\x0fWP1_SensorAgent\x94\x8c\x13agentMET4FOF.agents\x94\x8c\x0cAgentMET4FOF\x94\x93\x94\x85\x94}\x94\x8c\x07__doc__\x94Ns\x8c e097a8ac968c442c9d79dbed8b50fb33\x94Nt\x94R\x94}\x94(\x8c\n__module__\x94\x8c\x08__main__\x94\x8c\x0finit_parameters\x94h\x08\x8c\x0e_fill_function\x94\x93\x94(h\x08\x8c\x0f_make_skel_func\x94\x93\x94h\x08\x8c\r_builtin_type\x94\x93\x94\x8c\x08CodeType\x94\x85\x94R\x94(K\x03K\x00K\x05K\x06KCCht\x00d\x01d\x02\x83\x02}\x03t\x01\xa0\x02d\x03\xa1\x01\x01\x00t\x03|\x03j\x04\xa0\x05\xa1\x00\x83\x01d\x04\x19\x00}\x04|\x00\xa0\x06d\x05t\x07|\x03j\x04|\x04\x19\x00\x83\x01\x17\x00d\x06\x17\x00\xa1\x01\x01\x00t\x08|\x01\x83\x01|\x00_\t|\x03j\x04|\x04\x19\x00\xa0\n|\x00j\x0b\xa1\x01\x01\x00|\x02|\x00_\x0cd\x00S\x00\x94(N\x8c\r192.168.0.200\x94M\xe6\x1dK\nK\x00\x8c\x0fFirst sensor is\x94\x8c\x18 binding generic plotter\x94t\x94(\x8c\x0cDataReceiver\x94\x8c\x04time\x94\x8c\x05sleep\x94\x8c\x04list\x94\x8c\nAllSensors\x94\x8c\x04keys\x94\x8c\x08log_info\x94\x8c\x03str\x94\x8c\x0egenericPlotter\x94\x8c\x02GP\x94\x8c\x0bSetCallback\x94\x8c\x0fsensor_callback\x94\x8c\tplot_mode\x94t\x94(\x8c\x04self\x94\x8c\rbuffer_length\x94h8\x8c\x02DR\x94\x8c\rfirstSensorId\x94t\x94\x8cP/home/benedikt/connect-agentMET4FOF-smartupunit/connect_agents_smartupunit_v2.py\x94h\x1dKVC\x10\x00\x01\n\x01\n\x01\x12\x01\x04\x03\x18\x02\n\x01\x12\x01\x94))t\x94R\x94J\xff\xff\xff\xff}\x94(\x8c\x0b__package__\x94N\x8c\x08__name__\x94h\x1c\x8c\x08__file__\x94h?u\x87\x94R\x94}\x94(\x8c\x07globals\x94}\x94(h-h\x08\x8c\tsubimport\x94\x93\x94\x8c\x04time\x94\x85\x94R\x94h4\x8c\x13MET4FOFDataReceiver\x94h4\x93\x94h,hQh,\x93\x94u\x8c\x08defaults\x94Kd\x8c\x06plotly\x94\x86\x94\x8c\x04dict\x94}\x94\x8c\x0eclosure_values\x94N\x8c\x06module\x94h\x1ch\x05h\x1d\x8c\x03doc\x94N\x8c\x17_cloudpickle_submodules\x94]\x94\x8c\x0bannotations\x94}\x94\x8c\x08qualname\x94\x8c\x1fWP1_SensorAgent.init_parameters\x94\x8c\nkwdefaults\x94NutR\x8c\x0bplot_random\x94h\x1f(h!h&(K\x01K\x00K\x04K\x05KCC<t\x00\xa0\x01d\x01d\x02\xa1\x02\\\x02}\x01\\\x02}\x02}\x03|\x02\xa0\x02t\x03j\x04\xa0\x05d\x03\xa1\x01\xa1\x01\x01\x00|\x03\xa0\x02t\x03j\x04\xa0\x05d\x03\xa1\x01\xa1\x01\x01\x00|\x01S\x00\x94(NK\x02K\x01Kdt\x94(\x8c\x03plt\x94\x8c\x08subplots\x94\x8c\x04plot\x94\x8c\x02np\x94\x8c\x06random\x94\x8c\x06sample\x94t\x94(h:\x8c\x03fig\x94\x8c\x03ax1\x94\x8c\x03ax2\x94t\x94h?hcKhC\x08\x00\x01\x14\x01\x12\x01\x12\x01\x94))t\x94R\x94J\xff\xff\xff\xffhC\x87\x94R\x94}\x94(hJ}\x94(hihM\x8c\x05numpy\x94\x85\x94R\x94hfhM\x8c\x11matplotlib.pyplot\x94\x85\x94R\x94uhTNhW}\x94hYNhZh\x1ch\x05hch[Nh\\]\x94hM\x8c\x0cnumpy.random\x94\x85\x94R\x94ah^}\x94h`\x8c\x1bWP1_SensorAgent.plot_random\x94hbNutRh7h\x1f(h!h&(K\x03K\x00K\x03K\x04KCC\x94|\x00j\x00d\x01k\x02r\x90|\x00j\x01j\x02d\x02k\x02r$t\x03\xa0\x04|\x02\xa1\x01|\x00j\x01_\x05|\x00j\x01j\x02|\x00j\x01j\x06k\x00rR|\x00j\x01\xa0\x07|\x01\xa1\x01\x01\x00|\x00j\x01j\x02d\x03\x17\x00|\x00j\x01_\x02n>|\x00j\x01\xa0\x08\xa1\x00\\\x02|\x00j\x01_\t|\x00j\x01_\n|\x00j\x01\xa0\x0b\xa1\x00\x01\x00|\x00j\x01\xa0\x0c\xa1\x00\x01\x00|\x00j\r|\x00j\x01j\t|\x00j\x0ed\x04\x8d\x02\x01\x00d\x00S\x00\x94(N\x8c\x07Running\x94K\x00K\x01hm\x8c\x04mode\x94\x86\x94t\x94(\x8c\rcurrent_state\x94h5\x8c\rDatasetpushed\x94\x8c\x04copy\x94\x8c\x08deepcopy\x94\x8c\x0bDescription\x94\x8c\x0cBufferLength\x94\x8c\x08update_Y\x94\x8c\x08setUpFig\x94hm\x8c\x02ax\x94\x8c\x0bupdate_plot\x94\x8c\x0cempty_buffer\x94\x8c\tsend_plot\x94h8t\x94h:\x8c\x07message\x94h\x8e\x87\x94h?h7KnC\x14\x00\x01\n\x01\x0c\x01\x0e\x02\x10\x01\x0c\x01\x12\x02\x16\x01\n\x01\n\x01\x94))t\x94R\x94J\xff\xff\xff\xffhC\x87\x94R\x94}\x94(hJ}\x94h\x8chMh\x8c\x85\x94R\x94shTNhW}\x94hYNhZh\x1ch\x05h7h[Nh\\]\x94h^}\x94h`\x8c\x1fWP1_SensorAgent.sensor_callback\x94hbNutRutR\x8c\x08log_mode\x94\x89\x8c\x12memory_buffer_size\x94J@B\x0f\x00\x8c\x07ip_addr\x94\x8c\t127.0.0.1\x94ut\x94.'
    flags=flags, objectId=objectId)
 |     self = <Pyro4.util.CloudpickleSerializer object at 0x7fa1877aed50>
  File "/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/core.py", line 476, in _pyroInvoke
 | ----------------------------------------------------
    raise data  # if you see this in your traceback, you should probably inspect the remote traceback as well
 | File "/home/benedikt/pycharm-2020.1/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in ImportHookManager.do_import
BrokenPipeError: [Errno 32] Broken pipe
 | Source code:
 |     module = self._system_import(name, *args, **kwargs)
 | Local values:
 |     activate_func = None
 |     args = ({'__name__': 'Pyro4.util', '__doc__': '\nMiscellaneous utilities, and serializers.\n\nPyro - Python Remote Objects.  Copyright by Irmen de Jong (irmen@razorvine.net).\n', '__package__': 'Pyro4', '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7fa18779a4d0>, '__spec__': ModuleSpec(name='Pyro4.util', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa18779a4d0>, origin='/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/util.py'), '__file__': '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/util.py', '__cached__': '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/__pycache__/util.cpython-37.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), '__build_class__': <built-in function __build_class__>, '__import__': <bound method ImportHookManager.do_import of <module '_pydev_bundle.pydev_import_hook.import_hook'>>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'locals': <built-in function locals>, 'max': <built-in function max>, 'min': <built-in function min>, 'next': <built-in function next>, 'oct': <built-in function oct>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'repr': <built-in function repr>, 'round': <built-in function round>, 'setattr': <built-in function setattr>, 'sorted': <built-in function sorted>, 'sum': <built-in function sum>, 'vars': <built-in function vars>, 'None': None, 'Ellipsis': Ellipsis, 'NotImplemented': NotImplemented, 'False': False, 'True': True, 'bool': <class 'bool'>, 'memoryview': <class 'memoryview'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'classmethod': <class 'classmethod'>, 'complex': <class 'complex'>, 'dict': <class 'dict'>, 'enumerate': <class 'enumerate'>, 'filter': <class 'filter'>, 'float': <class 'float'>, 'frozenset': <class 'frozenset'>, 'property': <class 'property'>, 'int': <class 'int'>, 'list': <class 'list'>, 'map': <class 'map'>, 'object': <class 'object'>, 'range': <class 'range'>, 'reversed': <class 'reversed'>, 'set': <class 'set'>, 'slice': <class 'slice'>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'zip': <class 'zip'>, '__debug__': True, 'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'TimeoutError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'copyright': Copyright (c) 2001-2019 Python Software Foundation.
 | All Rights Reserved.
 | 
 | Copyright (c) 2000 BeOpen.com.
 | All Rights Reserved.
 | 
 | Copyright (c) 1995-2001 Corporation for National Research Initiatives.
 | All Rights Reserved.
 | 
 | Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
 | All Rights Reserved., 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
 |     for supporting Python development.  See www.python.org for more information., 'license': Type license() to see the full license text, 'help': Type help() for interactive help, or help(object) for help about object., 'execfile': <function execfile at 0x7fa1b0668440>, 'runfile': <function runfile at 0x7fa1b0361dd0>, '__pybind11_internals_v3_gcc_libstdcpp_cxxabi1002__': <capsule object NULL at 0x7fa1afa14570>}, 'array': <module 'array' (built-in)>, 'sys': <module 'sys' (built-in)>, 'zlib': <module 'zlib' (built-in)>, 'uuid': <module 'uuid' from '/usr/lib/python3.7/uuid.py'>, 'logging': <module 'logging' from '/usr/lib/python3.7/logging/__init__.py'>, 'linecache': <module 'linecache' from '/usr/lib/python3.7/linecache.py'>, 'traceback': <module 'traceback' from '/usr/lib/python3.7/traceback.py'>, 'inspect': <module 'inspect' from '/usr/lib/python3.7/inspect.py'>, 'struct': <module 'struct' from '/usr/lib/python3.7/struct.py'>, 'datetime': <module 'datetime' from '/usr/lib/python3.7/datetime.py'>, 'decimal': <module 'decimal' from '/usr/lib/python3.7/decimal.py'>, 'numbers': <module 'numbers' from '/usr/lib/python3.7/numbers.py'>, 'errors': <module 'Pyro4.errors' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/errors.py'>, 'config': <Pyro4.configuration.Configuration object at 0x7fa1877eb390>, 'copyreg': <module 'copyreg' from '/usr/lib/python3.7/copyreg.py'>, 'log': <Logger Pyro4.util (Level 9999)>, 'getPyroTraceback': <function getPyroTraceback at 0x7fa18779c170>, 'formatTraceback': <function formatTraceback at 0x7fa1877abe60>, 'all_exceptions': {'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'Pyro4.errors.TimeoutError'>, 'PyroError': <class 'Pyro4.errors.PyroError'>, 'CommunicationError': <class 'Pyro4.errors.CommunicationError'>, 'ConnectionClosedError': <class 'Pyro4.errors.ConnectionClosedError'>, 'ProtocolError': <class 'Pyro4.errors.ProtocolError'>, 'MessageTooLargeError': <class 'Pyro4.errors.MessageTooLargeError'>, 'NamingError': <class 'Pyro4.errors.NamingError'>, 'DaemonError': <class 'Pyro4.errors.DaemonError'>, 'SecurityError': <class 'Pyro4.errors.SecurityError'>, 'SerializeError': <class 'Pyro4.errors.SerializeError'>}, 'builtins': <module 'builtins' (built-in)>, 'name': 'SerializeError', 't': <class 'Pyro4.errors.SerializeError'>, 'buffer': <class 'bytearray'>, 'SerializerBase': <class 'Pyro4.util.SerializerBase'>, 'PickleSerializer': <class 'Pyro4.util.PickleSerializer'>, 'CloudpickleSerializer': <class 'Pyro4.util.CloudpickleSerializer'>, 'DillSerializer': <class 'Pyro4.util.DillSerializer'>, 'MarshalSerializer': <class 'Pyro4.util.MarshalSerializer'>, 'SerpentSerializer': <class 'Pyro4.util.SerpentSerializer'>, 'JsonSerializer': <class 'Pyro4.util.JsonSerializer'>, 'MsgpackSerializer': <class 'Pyro4.util.MsgpackSerializer'>, '_serializers': {'pickle': <Pyro4.util.PickleSerializer object at 0x7fa1877aecd0>, 'marshal': <Pyro4.util.MarshalSerializer object at 0x7fa1877aed10>, 'cloudpickle': <Pyro4.util.CloudpickleSerializer object at 0x7fa1877aed50>, 'dill': <Pyro4.util.DillSerializer object at 0x7fa1877aed90>, 'json': <Pyro4.util.JsonSerializer object at 0x7fa1877aef50>, 'serpent': <Pyro4.util.SerpentSerializer object at 0x7fa1877aefd0>}, '_serializers_by_id': {4: <Pyro4.util.PickleSerializer object at 0x7fa1877aecd0>, 3: <Pyro4.util.MarshalSerializer object at 0x7fa1877aed10>, 7: <Pyro4.util.CloudpickleSerializer object at 0x7fa1877aed50>, 5: <Pyro4.util.DillSerializer object at 0x7fa1877aed90>, 2: <Pyro4.util.JsonSerializer object at 0x7fa1877aef50>, 1: <Pyro4.util.SerpentSerializer object at 0x7fa1877aefd0>}, 'get_serializer': <function get_serializer at 0x7fa1877abef0>, 'get_serializer_by_id': <function get_serializer_by_id at 0x7fa1877b4440>, 'pickle': <module 'pickle' from '/usr/lib/python3.7/pickle.py'>, 'marshal': <module 'marshal' (built-in)>, 'cloudpickle': <module 'cloudpickle' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/cloudpickle/__init__.py'>, 'dill': <module 'dill' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/dill/__init__.py'>, 'importlib': <module 'importlib' from '/usr/lib/python3.7/importlib/__init__.py'>, 'json': <module 'json' from '/usr/lib/python3.7/json/__init__.py'>, 'serpent': <module 'serpent' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/serpent.py'>, 'getAttribute': <function getAttribute at 0x7fa1877b44d0>, 'excepthook': <function excepthook at 0x7fa1877524d0>, 'fixIronPythonExceptionForPickle': <function fixIronPythonExceptionForPickle at 0x7fa187757680>, '__exposed_member_cache': {(<class 'agentMET4FOF.agents._AgentController'>, False, True): {'methods': ['get_attr', 'list_timers', 'handle_process_data', 'stop_agent_loop', 'recv', 'get_agentType_count', 'execute_as_method', 'generate_module_name_byType', 'set_logger', 'shutdown', 'execute_as_function', 'stop', 'update_data_memory', 'get_latest_edges', 'init_agent_loop', 'log_ML', 'unbind_output', 'safe_call', 'reset', 'agents', 'on_received_message', 'update_networkx', 'before_loop', 'generate_module_name_byUnique', 'addr', 'bind_output', 'close', 'has_socket', 'on_init', 'init_parameters', 'raise_exception', 'send_plot', 'pack_data', 'subscribe', 'send_recv', 'bind', 'get_all_attr', 'send_output', 'each', 'log_info', 'after', 'get_networkx', 'log_error', 'log_debug', 'kill', 'run', 'agent_loop', 'add_module', 'stop_all_timers', 'is_running', 'log_warning', 'get_agent_name_count', 'send', 'connect', 'set_method', 'idle', 'unsubscribe', 'close_all', 'stop_timer', 'ping', 'set_attr'], 'oneway': ['run'], 'attrs': []}}, 'reset_exposed_members': <function reset_exposed_members at 0x7fa1877575f0>, 'get_exposed_members': <function get_exposed_members at 0x7fa18775a050>, 'get_exposed_property_value': <function get_exposed_property_value at 0x7fa18775acb0>, 'set_exposed_property_value': <function set_exposed_property_value at 0x7fa18775ad40>, '_private_dunder_methods': frozenset({'__subclasscheck__', '__call__', '__getattr__', '__new__', '__setattr__', '__del__', '__enter__', '__setstate_from_dict__', '__instancecheck__', '__repr__', '__bool__', '__hash__', '__unicode__', '__init_subclass__', '__getinitargs__', '__gt__', '__lt__', '__str__', '__deepcopy__', '__eq__', '__format__', '__ge__', '__init__', '__nonzero__', '__getstate__', '__le__', '__dir__', '__cmp__', '__subclasshook__', '__getstate_for_dict__', '__setstate__', '__ne__', '__exit__', '__getattribute__', '__delattr__', '__copy__', '__getnewargs__', '__reduce__', '__hasattr__', '__weakref__', '__reduce_ex__', '__sizeof__', '__module__', '__class__', '__coerce__'}), 'is_private_attribute': <function is_private_attribute at 0x7fa18775add0>}, {'__name__': 'Pyro4.util', '__doc__': '\nMiscellaneous utilities, and serializers.\n\nPyro - Python Remote Objects.  Copyright by Irmen de Jong (irmen@razorvine.net).\n', '__package__': 'Pyro4', '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7fa18779a4d0>, '__spec__': ModuleSpec(name='Pyro4.util', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa18779a4d0>, origin='/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/util.py'), '__file__': '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/util.py', '__cached__': '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/__pycache__/util.cpython-37.pyc', '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), '__build_class__': <built-in function __build_class__>, '__import__': <bound method ImportHookManager.do_import of <module '_pydev_bundle.pydev_import_hook.import_hook'>>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'locals': <built-in function locals>, 'max': <built-in function max>, 'min': <built-in function min>, 'next': <built-in function next>, 'oct': <built-in function oct>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'repr': <built-in function repr>, 'round': <built-in function round>, 'setattr': <built-in function setattr>, 'sorted': <built-in function sorted>, 'sum': <built-in function sum>, 'vars': <built-in function vars>, 'None': None, 'Ellipsis': Ellipsis, 'NotImplemented': NotImplemented, 'False': False, 'True': True, 'bool': <class 'bool'>, 'memoryview': <class 'memoryview'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'classmethod': <class 'classmethod'>, 'complex': <class 'complex'>, 'dict': <class 'dict'>, 'enumerate': <class 'enumerate'>, 'filter': <class 'filter'>, 'float': <class 'float'>, 'frozenset': <class 'frozenset'>, 'property': <class 'property'>, 'int': <class 'int'>, 'list': <class 'list'>, 'map': <class 'map'>, 'object': <class 'object'>, 'range': <class 'range'>, 'reversed': <class 'reversed'>, 'set': <class 'set'>, 'slice': <class 'slice'>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'zip': <class 'zip'>, '__debug__': True, 'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'TimeoutError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'copyright': Copyright (c) 2001-2019 Python Software Foundation.
 | All Rights Reserved.
 | 
 | Copyright (c) 2000 BeOpen.com.
 | All Rights Reserved.
 | 
 | Copyright (c) 1995-2001 Corporation for National Research Initiatives.
 | All Rights Reserved.
 | 
 | Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
 | All Rights Reserved., 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
 |     for supporting Python development.  See www.python.org for more information., 'license': Type license() to see the full license text, 'help': Type help() for interactive help, or help(object) for help about object., 'execfile': <function execfile at 0x7fa1b0668440>, 'runfile': <function runfile at 0x7fa1b0361dd0>, '__pybind11_internals_v3_gcc_libstdcpp_cxxabi1002__': <capsule object NULL at 0x7fa1afa14570>}, 'array': <module 'array' (built-in)>, 'sys': <module 'sys' (built-in)>, 'zlib': <module 'zlib' (built-in)>, 'uuid': <module 'uuid' from '/usr/lib/python3.7/uuid.py'>, 'logging': <module 'logging' from '/usr/lib/python3.7/logging/__init__.py'>, 'linecache': <module 'linecache' from '/usr/lib/python3.7/linecache.py'>, 'traceback': <module 'traceback' from '/usr/lib/python3.7/traceback.py'>, 'inspect': <module 'inspect' from '/usr/lib/python3.7/inspect.py'>, 'struct': <module 'struct' from '/usr/lib/python3.7/struct.py'>, 'datetime': <module 'datetime' from '/usr/lib/python3.7/datetime.py'>, 'decimal': <module 'decimal' from '/usr/lib/python3.7/decimal.py'>, 'numbers': <module 'numbers' from '/usr/lib/python3.7/numbers.py'>, 'errors': <module 'Pyro4.errors' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/Pyro4/errors.py'>, 'config': <Pyro4.configuration.Configuration object at 0x7fa1877eb390>, 'copyreg': <module 'copyreg' from '/usr/lib/python3.7/copyreg.py'>, 'log': <Logger Pyro4.util (Level 9999)>, 'getPyroTraceback': <function getPyroTraceback at 0x7fa18779c170>, 'formatTraceback': <function formatTraceback at 0x7fa1877abe60>, 'all_exceptions': {'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'Pyro4.errors.TimeoutError'>, 'PyroError': <class 'Pyro4.errors.PyroError'>, 'CommunicationError': <class 'Pyro4.errors.CommunicationError'>, 'ConnectionClosedError': <class 'Pyro4.errors.ConnectionClosedError'>, 'ProtocolError': <class 'Pyro4.errors.ProtocolError'>, 'MessageTooLargeError': <class 'Pyro4.errors.MessageTooLargeError'>, 'NamingError': <class 'Pyro4.errors.NamingError'>, 'DaemonError': <class 'Pyro4.errors.DaemonError'>, 'SecurityError': <class 'Pyro4.errors.SecurityError'>, 'SerializeError': <class 'Pyro4.errors.SerializeError'>}, 'builtins': <module 'builtins' (built-in)>, 'name': 'SerializeError', 't': <class 'Pyro4.errors.SerializeError'>, 'buffer': <class 'bytearray'>, 'SerializerBase': <class 'Pyro4.util.SerializerBase'>, 'PickleSerializer': <class 'Pyro4.util.PickleSerializer'>, 'CloudpickleSerializer': <class 'Pyro4.util.CloudpickleSerializer'>, 'DillSerializer': <class 'Pyro4.util.DillSerializer'>, 'MarshalSerializer': <class 'Pyro4.util.MarshalSerializer'>, 'SerpentSerializer': <class 'Pyro4.util.SerpentSerializer'>, 'JsonSerializer': <class 'Pyro4.util.JsonSerializer'>, 'MsgpackSerializer': <class 'Pyro4.util.MsgpackSerializer'>, '_serializers': {'pickle': <Pyro4.util.PickleSerializer object at 0x7fa1877aecd0>, 'marshal': <Pyro4.util.MarshalSerializer object at 0x7fa1877aed10>, 'cloudpickle': <Pyro4.util.CloudpickleSerializer object at 0x7fa1877aed50>, 'dill': <Pyro4.util.DillSerializer object at 0x7fa1877aed90>, 'json': <Pyro4.util.JsonSerializer object at 0x7fa1877aef50>, 'serpent': <Pyro4.util.SerpentSerializer object at 0x7fa1877aefd0>}, '_serializers_by_id': {4: <Pyro4.util.PickleSerializer object at 0x7fa1877aecd0>, 3: <Pyro4.util.MarshalSerializer object at 0x7fa1877aed10>, 7: <Pyro4.util.CloudpickleSerializer object at 0x7fa1877aed50>, 5: <Pyro4.util.DillSerializer object at 0x7fa1877aed90>, 2: <Pyro4.util.JsonSerializer object at 0x7fa1877aef50>, 1: <Pyro4.util.SerpentSerializer object at 0x7fa1877aefd0>}, 'get_serializer': <function get_serializer at 0x7fa1877abef0>, 'get_serializer_by_id': <function get_serializer_by_id at 0x7fa1877b4440>, 'pickle': <module 'pickle' from '/usr/lib/python3.7/pickle.py'>, 'marshal': <module 'marshal' (built-in)>, 'cloudpickle': <module 'cloudpickle' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/cloudpickle/__init__.py'>, 'dill': <module 'dill' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/dill/__init__.py'>, 'importlib': <module 'importlib' from '/usr/lib/python3.7/importlib/__init__.py'>, 'json': <module 'json' from '/usr/lib/python3.7/json/__init__.py'>, 'serpent': <module 'serpent' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/serpent.py'>, 'getAttribute': <function getAttribute at 0x7fa1877b44d0>, 'excepthook': <function excepthook at 0x7fa1877524d0>, 'fixIronPythonExceptionForPickle': <function fixIronPythonExceptionForPickle at 0x7fa187757680>, '__exposed_member_cache': {(<class 'agentMET4FOF.agents._AgentController'>, False, True): {'methods': ['get_attr', 'list_timers', 'handle_process_data', 'stop_agent_loop', 'recv', 'get_agentType_count', 'execute_as_method', 'generate_module_name_byType', 'set_logger', 'shutdown', 'execute_as_function', 'stop', 'update_data_memory', 'get_latest_edges', 'init_agent_loop', 'log_ML', 'unbind_output', 'safe_call', 'reset', 'agents', 'on_received_message', 'update_networkx', 'before_loop', 'generate_module_name_byUnique', 'addr', 'bind_output', 'close', 'has_socket', 'on_init', 'init_parameters', 'raise_exception', 'send_plot', 'pack_data', 'subscribe', 'send_recv', 'bind', 'get_all_attr', 'send_output', 'each', 'log_info', 'after', 'get_networkx', 'log_error', 'log_debug', 'kill', 'run', 'agent_loop', 'add_module', 'stop_all_timers', 'is_running', 'log_warning', 'get_agent_name_count', 'send', 'connect', 'set_method', 'idle', 'unsubscribe', 'close_all', 'stop_timer', 'ping', 'set_attr'], 'oneway': ['run'], 'attrs': []}}, 'reset_exposed_members': <function reset_exposed_members at 0x7fa1877575f0>, 'get_exposed_members': <function get_exposed_members at 0x7fa18775a050>, 'get_exposed_property_value': <function get_exposed_property_value at 0x7fa18775acb0>, 'set_exposed_property_value': <function set_exposed_property_value at 0x7fa18775ad40>, '_private_dunder_methods': frozenset({'__subclasscheck__', '__call__', '__getattr__', '__new__', '__setattr__', '__del__', '__enter__', '__setstate_from_dict__', '__instancecheck__', '__repr__', '__bool__', '__hash__', '__unicode__', '__init_subclass__', '__getinitargs__', '__gt__', '__lt__', '__str__', '__deepcopy__', '__eq__', '__format__', '__ge__', '__init__', '__nonzero__', '__getstate__', '__le__', '__dir__', '__cmp__', '__subclasshook__', '__getstate_for_dict__', '__setstate__', '__ne__', '__exit__', '__getattribute__', '__delattr__', '__copy__', '__getnewargs__', '__reduce__', '__hasattr__', '__weakref__', '__reduce_ex__', '__sizeof__', '__module__', '__class__', '__coerce__'}), 'is_private_attribute': <function is_private_attribute at 0x7fa18775add0>}, [], 0)
 |     kwargs = {}
 |     name = 'MET4FOFDataReceiver'
 |     self = <module '_pydev_bundle.pydev_import_hook.import_hook'>
 |         self.__name__ = '_pydev_bundle.pydev_import_hook.import_hook'
 |         self.__doc__ = None
 |         self.__package__ = None
 |         self.__loader__ = None
 |         self.__spec__ = None
 |         self._system_import = <built-in function __import__>
 |         self._modules_to_patch = {'pylab': <function activate_pylab at 0x7fa1b035a9e0>}
 |         self.inside_activation = False
 | ----------------------------------------------------
 | File "/home/benedikt/connect-agentMET4FOF-smartupunit/datareceiver/MET4FOFDataReceiver.py", line 31, in <module>
 | Source code:
 |     print(CURR_DIR)
 | Local values:
 |     CURR_DIR = '/home/benedikt/connect-agentMET4FOF-smartupunit/datareceiver'
 |     Queue = <bound method BaseContext.Queue of <multiprocessing.context.DefaultContext object at 0x7fa1b024ab90>>
 |     _DecodeVarint32 = <function _VarintDecoder.<locals>.DecodeVarint at 0x7fa1b023a050>
 |     _VarintBytes = <function _VarintBytes at 0x7fa1b0227f80>
 |     __doc__ = '\nCreated on Wed Sep  4 09:20:12 2019\n\nData receiver for Met4FoF Protobuff Data\n@author: Benedikt.Seeger@ptb.de\n'
 |     __file__ = '/home/benedikt/connect-agentMET4FOF-smartupunit/datareceiver/MET4FOFDataReceiver.py'
 |     __name__ = 'MET4FOFDataReceiver'
 |     copy = <module 'copy' from '/usr/lib/python3.7/copy.py'>
 |     datetime = <class 'datetime.datetime'>
 |     json = <module 'json' from '/usr/lib/python3.7/json/__init__.py'>
 |     np = <module 'numpy' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/numpy/__init__.py'>
 |     os = <module 'os' from '/usr/lib/python3.7/os.py'>
 |     plt = <module 'matplotlib.pyplot' from '/home/benedikt/connect-agentMET4FOF-smartupunit/venv/lib/python3.7/site-packages/matplotlib/pyplot.py'>
 |     socket = <module 'socket' from '/usr/lib/python3.7/socket.py'>
 |     sys = <module 'sys' (built-in)>
 |     threading = <module 'threading' from '/usr/lib/python3.7/threading.py'>
 |     time = <module 'time' (built-in)>
 |     traceback = <module 'traceback' from '/usr/lib/python3.7/traceback.py'>
 |     warnings = <module 'warnings' from '/usr/lib/python3.7/warnings.py'>
 | ----------------------------------------------------
 |  EXCEPTION <class 'BrokenPipeError'>: [Errno 32] Broken pipe
 | ----------------------------------------------------
 +--- End of remote traceback
bangxiangyong commented 4 years ago

Unfortunately i can't replicate this as the script works well on my PC and setup with the sensor

BjoernLudwigPTB commented 4 years ago

@BeSeeTek Can you provide us the actual code you are trying to execute and some information about the enviroment?