Repository navigation
Description
2024-10-13 16:11:41.288 | ERROR | core.architecture.rpc.async_rpc_server:receive:90 - There should be one and only one Operator defined
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 973, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x100896200>
└ <Thread(main_loop_thread, started 6233649152)>
File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
│ └ <function Thread.run at 0x100895f30>
└ <Thread(main_loop_thread, started 6233649152)>
File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
│ │ │ │ │ └ {}
│ │ │ │ └ <Thread(main_loop_thread, started 6233649152)>
│ │ │ └ ()
│ │ └ <Thread(main_loop_thread, started 6233649152)>
│ └ <bound method StoppableQueueBlockingRunnable.run of <core.runnables.main_loop.MainLoop object at 0x12309cbe0>>
└ <Thread(main_loop_thread, started 6233649152)>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/util/stoppable/stoppable_queue_blocking_thread.py", line 48, in run
self.receive(self.interruptible_get())
│ │ │ └ <function StoppableQueueBlockingRunnable.interruptible_get at 0x122d93910>
│ │ └ <core.runnables.main_loop.MainLoop object at 0x12309cbe0>
│ └ <function MainLoop.receive at 0x122ee79a0>
└ <core.runnables.main_loop.MainLoop object at 0x12309cbe0>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/runnables/main_loop.py", line 122, in receive
match(
└ <function match at 0x122d9e9e0>
File "/Users/kunwoopark/workspace/venv/lib/python3.10/site-packages/pampy/pampy.py", line 299, in match
return run(action, lambda_args)
│ │ └ [ControlElement(tag=ActorVirtualIdentity(name='CONTROLLER'), payload=ControlPayloadV2(control_invocation=ControlInvocationV2(...
│ └ <bound method MainLoop._process_control_element of <core.runnables.main_loop.MainLoop object at 0x12309cbe0>>
└ <function run at 0x122d9dcf0>
File "/Users/kunwoopark/workspace/venv/lib/python3.10/site-packages/pampy/pampy.py", line 48, in run
return action(*var)
│ └ [ControlElement(tag=ActorVirtualIdentity(name='CONTROLLER'), payload=ControlPayloadV2(control_invocation=ControlInvocationV2(...
└ <bound method MainLoop._process_control_element of <core.runnables.main_loop.MainLoop object at 0x12309cbe0>>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/runnables/main_loop.py", line 209, in _process_control_element
self.process_control_payload(control_element.tag, control_element.payload)
│ │ │ │ │ └ ControlPayloadV2(control_invocation=ControlInvocationV2(command_id=1, command=ControlCommandV2(initialize_executor=Initialize...
│ │ │ │ └ ControlElement(tag=ActorVirtualIdentity(name='CONTROLLER'), payload=ControlPayloadV2(control_invocation=ControlInvocationV2(c...
│ │ │ └ ActorVirtualIdentity(name='CONTROLLER')
│ │ └ ControlElement(tag=ActorVirtualIdentity(name='CONTROLLER'), payload=ControlPayloadV2(control_invocation=ControlInvocationV2(c...
│ └ <function MainLoop.process_control_payload at 0x122ee7a30>
└ <core.runnables.main_loop.MainLoop object at 0x12309cbe0>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/runnables/main_loop.py", line 140, in process_control_payload
match(
└ <function match at 0x122d9e9e0>
File "/Users/kunwoopark/workspace/venv/lib/python3.10/site-packages/pampy/pampy.py", line 299, in match
return run(action, lambda_args)
│ │ └ [ActorVirtualIdentity(name='CONTROLLER'), ControlInvocationV2(command_id=1, command=ControlCommandV2(initialize_executor=Init...
│ └ <bound method AsyncRPCServer.receive of <core.architecture.rpc.async_rpc_server.AsyncRPCServer object at 0x12309eef0>>
└ <function run at 0x122d9dcf0>
File "/Users/kunwoopark/workspace/venv/lib/python3.10/site-packages/pampy/pampy.py", line 48, in run
return action(*var)
│ └ [ActorVirtualIdentity(name='CONTROLLER'), ControlInvocationV2(command_id=1, command=ControlCommandV2(initialize_executor=Init...
└ <bound method AsyncRPCServer.receive of <core.architecture.rpc.async_rpc_server.AsyncRPCServer object at 0x12309eef0>>
> File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/architecture/rpc/async_rpc_server.py", line 86, in receive
ControlReturnV2, handler(self._context, command)
│ │ │ │ └ InitializeExecutorV2(code='# Choose from the following templates:\n# \n# from pytexera import *\n# \n# class GenerateOperator...
│ │ │ └ <core.architecture.managers.context.Context object at 0x12309e8c0>
│ │ └ <core.architecture.rpc.async_rpc_server.AsyncRPCServer object at 0x12309eef0>
│ └ <core.architecture.handlers.control.initialize_executor_handler.InitializeExecutorHandler object at 0x12309f1f0>
└ <class 'proto.edu.uci.ics.amber.engine.architecture.worker.ControlReturnV2'>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/architecture/handlers/control/initialize_executor_handler.py", line 10, in __call__
context.executor_manager.initialize_executor(
│ │ └ <function ExecutorManager.initialize_executor at 0x122eba4d0>
│ └ <core.architecture.managers.executor_manager.ExecutorManager object at 0x12309e920>
└ <core.architecture.managers.context.Context object at 0x12309e8c0>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/architecture/managers/executor_manager.py", line 141, in initialize_executor
executor: type(Operator) = self.load_executor_definition(code)
│ │ │ └ '# Choose from the following templates:\n# \n# from pytexera import *\n# \n# class GenerateOperator(UDFSourceOperator):\n# \n...
│ │ └ <function ExecutorManager.load_executor_definition at 0x122eba320>
│ └ <core.architecture.managers.executor_manager.ExecutorManager object at 0x12309e920>
└ <class 'core.models.operator.Operator'>
File "/Users/kunwoopark/workspace/texera/core/amber/src/main/python/core/architecture/managers/executor_manager.py", line 83, in load_executor_definition
assert len(executors) == 1, "There should be one and only one Operator defined"
└ []
AssertionError: There should be one and only one Operator defined
Metadata
Metadata
Assignees
Labels
No labels
Activity
Yicong-Huang commentedon Oct 14, 2024
I believe this is due to some editor error causing the input code is not saved properly, and not being submitted to execution. The submitted code is empty. Tagging @mengw15 here for a follow up.
Add Check for Python Language Server Availability (#2936)
Add Check for Python Language Server Availability (#2936)
Add Check for Python Language Server Availability (apache#2936)
Add Check for Python Language Server Availability (apache#2936)