Threading is not working properly

The block I have to run:

rclpy.init(args=args)

target_follower = aruco_tf()

executor_ = rclpy.executors.MultiThreadedExecutor(2)
executor_.add_node(target_follower)
# executor_.spin()
executor_thread = Thread(target=executor_.spin, daemon=True, args=())
executor_thread.start()

But the program is not spinning as expected and it freezes. The terminal output when I give ctrl+C:

^CException ignored in: <module ‘threading’ from ‘/usr/lib/python3.10/threading.py’>
Traceback (most recent call last):
File “/usr/lib/python3.10/threading.py”, line 1537, in _shutdown
atexit_call()
File “/usr/lib/python3.10/concurrent/futures/thread.py”, line 31, in _python_exit
t.join()
File “/usr/lib/python3.10/threading.py”, line 1096, in join
self._wait_for_tstate_lock()
File “/usr/lib/python3.10/threading.py”, line 1116, in _wait_for_tstate_lock
if lock.acquire(block, timeout):
KeyboardInterrupt:

The Same code runs well in another machine. Can Somebody help me in this

Thank you for the question.

ROS Discourse is for general discussions, not for debugging of issues.

We ask that you please open questions like this on our central Q&A site at Newest 'ros' Questions - Robotics Stack Exchange . Make sure to include a lot of information on what platform you are using, which ROS distribution you are using, and the exact steps you took.