Command sent on socketcan channel 'can-grid-00'
Exception in thread can.notifier for bus "socketcan channel 'can-grid-00'":
Traceback (most recent call last):
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 531, in capture_message
cf, ancillary_data, msg_flags, addr = sock.recvmsg(
^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/notifier.py", line 124, in _rx_thread
if msg := bus.recv(self.timeout):
^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/bus.py", line 121, in recv
msg, already_filtered = self._recv_internal(timeout=time_left)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 744, in _recv_internal
msg = capture_message(self.socket, get_channel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 539, in capture_message
raise can.CanOperationError(f"Error receiving: {error.strerror}", error.errno)
can.exceptions.CanOperationError: Error receiving: Bad file descriptor [Error Code 9]
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Exception in thread can.notifier for bus "socketcan channel 'can-grid-00'":
Traceback (most recent call last):
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 531, in capture_message
cf, ancillary_data, msg_flags, addr = sock.recvmsg(
^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/notifier.py", line 124, in _rx_thread
if msg := bus.recv(self.timeout):
^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/bus.py", line 121, in recv
msg, already_filtered = self._recv_internal(timeout=time_left)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 744, in _recv_internal
msg = capture_message(self.socket, get_channel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 539, in capture_message
raise can.CanOperationError(f"Error receiving: {error.strerror}", error.errno)
can.exceptions.CanOperationError: Error receiving: Bad file descriptor [Error Code 9]
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Exception in thread can.notifier for bus "socketcan channel 'can-grid-00'":
Traceback (most recent call last):
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 531, in capture_message
cf, ancillary_data, msg_flags, addr = sock.recvmsg(
^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/notifier.py", line 124, in _rx_thread
if msg := bus.recv(self.timeout):
^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/bus.py", line 121, in recv
msg, already_filtered = self._recv_internal(timeout=time_left)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 744, in _recv_internal
msg = capture_message(self.socket, get_channel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/venv/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 539, in capture_message
raise can.CanOperationError(f"Error receiving: {error.strerror}", error.errno)
can.exceptions.CanOperationError: Error receiving: Bad file descriptor [Error Code 9]
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
Command sent on socketcan channel 'can-grid-00'
^C_GatheringFuture exception was never retrieved
future: <_GatheringFuture finished exception=CancelledError()>
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/rectifier.py", line 173, in __loop
await asyncio.shield(asyncio.gather(self.__can_send_loop() , self.__can_receive_loop()))
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 123, in run
raise KeyboardInterrupt()
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/Repositories/R48_Rectifier/rectifier.py", line 222, in __can_send_loop
await asyncio.sleep(self.INTERVAL_SEND_DATA)
File "/usr/lib/python3.11/asyncio/tasks.py", line 649, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError
Traceback (most recent call last):
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/user/Repositories/R48_Rectifier/rectifier.py", line 173, in __loop
await asyncio.shield(asyncio.gather(self.__can_send_loop() , self.__can_receive_loop()))
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/Repositories/R48_Rectifier/app.py", line 15, in <module>
Charger.run(debug=True)
File "/home/user/Repositories/R48_Rectifier/rectifier.py", line 146, in run
asyncio.run(self.__loop())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 123, in run
raise KeyboardInterrupt()
KeyboardInterrupt