Start: 0812-170654

Task 1: look_at_obj_in_light-Book-None-DeskLamp-308/trial_T20190908_020048_814402
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the book with the desklamp.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see nothing.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a alarmclock 1, and a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 1, a creditcard 3, a creditcard 2, a mug 3, a mug 2, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a creditcard 1, a desklamp 1, and a keychain 2.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a laptop 1, a pillow 2, and a pillow 1.
[Step 3] examine the book with the desklamp
Act: go to bed 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 1, a creditcard 3, a creditcard 2, a mug 3, a mug 2, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a creditcard 1, a desklamp 1, and a keychain 2.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 32, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see nothing.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
[Step 3] take the bowl from the receptacle
Act: take pen 1 from shelf 2
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 1, a creditcard 3, a creditcard 2, a mug 3, a mug 2, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a creditcard 1, a desklamp 1, and a keychain 2.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see nothing.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a alarmclock 1, and a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 1, a creditcard 3, a creditcard 2, a mug 3, a mug 2, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a creditcard 1, a desklamp 1, and a keychain 2.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a laptop 1, a pillow 2, and a pillow 1.
[Step 3] examine the book with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 24, in solution
AttributeError: 'Agent' object has no attribute 'examine'

Success: False
Task 1, rs: [0, 0, 0, 0, 0, 0] cnts [0, 1, 0, 0, 0, 0] success_rate: 0.0 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 2: look_at_obj_in_light-Bowl-None-DeskLamp-308/trial_T20190907_133935_066606
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: look at bowl under the desklamp.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a creditcard 2.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2, and a pencil 3.
[Step 3] take the bowl from the receptacle
Act: take pen 3 from shelf 4
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a bowl 1, a cd 2, a cd 1, and a creditcard 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a desklamp 1, a mug 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a creditcard 2.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2, and a pencil 3.
[Step 3] take the bowl from the receptacle
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a bowl 1, a cd 2, a cd 1, and a creditcard 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a desklamp 1, a mug 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.

Success: False
Task 2, rs: [0, 0, 0, 0, 0, 0] cnts [0, 2, 0, 0, 0, 0] success_rate: 0.0 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 3: look_at_obj_in_light-Mug-None-DeskLamp-308/trial_T20190908_201421_021646
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the mug with the desklamp.
[Step 1] get a list of receptacles where a mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a cd 1, and a mug 2.
[Step 3] examine the mug with the desklamp
Act: go to bed 1
Obs: On the bed 1, you see a book 2, a book 1, a laptop 1, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, a mug 3, a pencil 3, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a creditcard 3, a desklamp 1, a laptop 2, a mug 1, a pen 1, and a pencil 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 31, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a cd 1, and a mug 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a creditcard 3, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a creditcard 2, and a pen 2.
[Step 3] take the bowl from the receptacle
Act: take pen 2 from shelf 2
Obs: You pick up the pen 2 from the shelf 2.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, a mug 3, a pencil 3, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a creditcard 3, a desklamp 1, a laptop 2, a mug 1, a pen 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a cd 1, and a mug 2.
[Step 3] examine the mug with the desklamp
Act: use desklamp
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 21, in solution
AssertionError: Error in [Step 3]: I cannot turn on the desklamp. The last three interactions before error were:
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a cd 1, and a mug 2.
Act: use desklamp
Obs: Nothing happens.
I am at shelf 4 and holding pen 2.
[Step 1] get a list of receptacles where a mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a cd 1, and a mug 2.
[Step 3] examine the mug with the desklamp
Act: go to bed 1
Obs: On the bed 1, you see a book 2, a book 1, a laptop 1, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, a mug 3, a pencil 3, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a creditcard 3, a desklamp 1, a laptop 2, a mug 1, a pen 1, and a pencil 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 30, in solution
AttributeError: 'Agent' object has no attribute 'examine'

Success: False
Task 3, rs: [0, 0, 0, 0, 0, 0] cnts [0, 3, 0, 0, 0, 0] success_rate: 0.0 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 4: look_at_obj_in_light-Book-None-DeskLamp-308/trial_T20190908_144951_587345
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the book with the desklamp.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a mug 2, and a pencil 1.
Act: go to shelf 3
Obs: On the shelf 3, you see a creditcard 1, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pen 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a bowl 1.
Act: go to desk 2
Obs: On the desk 2, you see a cellphone 2, a creditcard 2, a mug 3, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a creditcard 1, a desklamp 1, a laptop 3, and a mug 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, a pillow 2, and a pillow 1.
[Step 3] examine the book with the desklamp
Act: go to bed 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a cellphone 2, a creditcard 2, a mug 3, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a creditcard 1, a desklamp 1, a laptop 3, and a mug 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 32, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 3] take the book from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a mug 2, and a pencil 1.
[Step 3] take the bowl from the receptacle
Act: take pen 1 from shelf 4
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a cellphone 2, a creditcard 2, a mug 3, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a creditcard 1, a desklamp 1, a laptop 3, and a mug 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.

Success: False
Task 4, rs: [0, 0, 0, 0, 0, 0] cnts [0, 4, 0, 0, 0, 0] success_rate: 0.0 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 5: look_at_obj_in_light-AlarmClock-None-DeskLamp-308/trial_T20190908_222951_616606
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: look at alarmclock under the desklamp.
[Step 1] get a list of receptacles where an alarmclock is likely to appear.
[Step 2] go to each receptacle in the list until seeing an alarmclock
Act: go to safe 1
Obs: The safe 1 is closed.
Act: open safe 1
Obs: You open the safe 1. The safe 1 is open. In it, you see nothing.
Act: go to drawer 6
Obs: The drawer 6 is closed.
Act: open drawer 6
Obs: You open the drawer 6. The drawer 6 is open. In it, you see nothing.
Act: go to drawer 5
Obs: On the drawer 5, you see nothing.
Act: go to drawer 4
Obs: The drawer 4 is closed.
Act: open drawer 4
Obs: You open the drawer 4. The drawer 4 is open. In it, you see a creditcard 2.
Act: go to drawer 3
Obs: On the drawer 3, you see a cd 1.
Act: go to drawer 2
Obs: Nothing happens.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a book 3.
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a mug 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a desklamp 1, and a pencil 1.
Act: go to shelf 2
Obs: On the shelf 2, you see nothing.
Act: go to shelf 1
Obs: On the shelf 1, you see a cd 2, and a mug 1.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cellphone 3, a cellphone 2, a creditcard 1, a mug 3, a pen 1, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a cd 3, a desklamp 1, a laptop 1, and a pencil 1.
[Step 3] examine the alarmclock under the desklamp
Act: go to bed 1
Obs: On the bed 1, you see a book 2, a book 1, a cellphone 1, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cellphone 3, a cellphone 2, a creditcard 1, a mug 3, a pen 1, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a cd 3, a desklamp 1, a laptop 1, and a pencil 1.
Act: open desklamp
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 33, in solution
AssertionError: Error in [Step 3]: There is no alarmclock under the desklamp. The last three interactions before error were:
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cellphone 3, a cellphone 2, a creditcard 1, a mug 3, a pen 1, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a cd 3, a desklamp 1, a laptop 1, and a pencil 1.
Act: open desklamp
Obs: Nothing happens.
I am at desk 1 and holding None.
[Step 3] take the alarmclock from the receptacle
Act: take alarmclock 1 from desk 1
Obs: You pick up the alarmclock 1 from the desk 1.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cellphone 3, a cellphone 2, a creditcard 1, a mug 3, a pen 1, and a pencil 2.
Act: go to desk 1
Obs: On the desk 1, you see a cd 3, a desklamp 1, a laptop 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
Done. Success: True

Success: True
Task 5, rs: [0, 1, 0, 0, 0, 0] cnts [0, 5, 0, 0, 0, 0] success_rate: 0.2 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 6: look_at_obj_in_light-AlarmClock-None-DeskLamp-308/trial_T20190908_222917_366542
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the alarmclock with the desklamp.
[Step 1] get a list of receptacles where an alarmclock is likely to appear.
[Step 2] go to each receptacle in the list until seeing an alarmclock
Act: go to safe 1
Obs: The safe 1 is closed.
Act: open safe 1
Obs: You open the safe 1. The safe 1 is open. In it, you see a keychain 2, and a keychain 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1.
[Step 3] examine the alarmclock with the desklamp
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 1, a desklamp 1, a mug 1, and a pencil 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 32, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 3] examine the alarmclock with the desklamp
Act: take alarmclock from desk 1
Obs: Nothing happens.
Act: put alarmclock in/on desk 1
Obs: Nothing happens.
[Step 1] get a list of receptacles where an alarmclock is likely to appear.
[Step 2] go to each receptacle in the list until seeing an alarmclock
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a keychain 2, and a keychain 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1.
[Step 3] take the alarmclock from the receptacle
Act: take alarmclock 1 from desk 2
Obs: You pick up the alarmclock 1 from the desk 2.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: Nothing happens.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 1, a desklamp 1, a mug 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
Done. Success: True

Success: True
Task 6, rs: [0, 2, 0, 0, 0, 0] cnts [0, 6, 0, 0, 0, 0] success_rate: 0.3333333333333333 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 7: look_at_obj_in_light-CD-None-DeskLamp-308/trial_T20190908_141958_463362
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the cd with the desklamp.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cd 3, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a desklamp 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a cd is likely to appear.
[Step 2] go to each receptacle in the list until seeing a cd
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2, and a alarmclock 1.
Act: go to shelf 3
Obs: On the shelf 3, you see a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see nothing.
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cd 3, and a mug 1.
[Step 3] examine the cd with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 22, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2, and a alarmclock 1.
Act: go to shelf 3
Obs: On the shelf 3, you see a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see nothing.
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cd 3, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a desklamp 1, and a pencil 1.
[Step 3] take the bowl from the receptacle
Act: take pen 1 from desk 1
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 1, a cd 3, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a desklamp 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.

Success: False
Task 7, rs: [0, 2, 0, 0, 0, 0] cnts [0, 7, 0, 0, 0, 0] success_rate: 0.2857142857142857 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 8: look_at_obj_in_light-CD-None-DeskLamp-308/trial_T20190908_142046_281296
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the cd with the desklamp.
[Step 2] go to each receptacle in the list until seeing a pen
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 13, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a creditcard 3.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 1, and a pencil 2.
[Step 3] take the bowl from the receptacle
Act: take pen 2 from shelf 4
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 2, a bowl 1, a mug 3, and a mug 2.
Act: go to desk 1
Obs: On the desk 1, you see a cd 2, a creditcard 2, and a desklamp 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a cd is likely to appear.
[Step 2] go to each receptacle in the list until seeing a cd
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a creditcard 3.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 1, and a pencil 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see nothing.
Act: go to shelf 1
Obs: On the shelf 1, you see a mug 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 2, a bowl 1, a mug 3, and a mug 2.
Act: go to desk 1
Obs: On the desk 1, you see a cd 2, a creditcard 2, and a desklamp 1.
[Step 3] examine the cd with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 24, in solution
AttributeError: 'Agent' object has no attribute 'examine'

Success: False
Task 8, rs: [0, 2, 0, 0, 0, 0] cnts [0, 8, 0, 0, 0, 0] success_rate: 0.25 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 9: look_at_obj_in_light-Mug-None-DeskLamp-308/trial_T20190908_201444_037645
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the mug with the desklamp.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 2] go to each receptacle in the list until seeing a pen
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 14, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a bowl 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a mug 1, and a pencil 1.
[Step 3] take the bowl from the receptacle
Act: take pen 1 from shelf 2
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 2, a keychain 2, a keychain 1, a mug 3, and a mug 2.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 1, a desklamp 1, a laptop 1, and a pen 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a bowl 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a mug 1, and a pencil 1.
[Step 3] examine the mug with the desklamp
Act: use desklamp
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 21, in solution
AssertionError: Error in [Step 3]: I cannot turn on the desklamp. The last three interactions before error were:
Act: go to shelf 3
Obs: On the shelf 3, you see a bowl 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a mug 1, and a pencil 1.
Act: use desklamp
Obs: Nothing happens.
I am at shelf 2 and holding pen 1.

Success: False
Task 9, rs: [0, 2, 0, 0, 0, 0] cnts [0, 9, 0, 0, 0, 0] success_rate: 0.2222222222222222 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 10: look_at_obj_in_light-Pencil-None-DeskLamp-308/trial_T20190908_220656_510400
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the pencil with the desklamp.
[Step 1] get a list of receptacles where a pencil is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pencil
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a cd 1, a desklamp 1, and a laptop 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a book 2, a mug 1, and a pencil 3.
[Step 3] examine the pencil with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 23, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 3] take the pencil from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pen 2.
[Step 3] take the bowl from the receptacle
Act: take pen 2 from shelf 4
Obs: You pick up the pen 2 from the shelf 4.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a book 2, a mug 1, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a cd 1, a desklamp 1, and a laptop 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a pencil is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pencil
Act: go to desk 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a book 2, a mug 1, and a pencil 3.
[Step 3] examine the pencil with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 24, in solution
AttributeError: 'Agent' object has no attribute 'examine'

Success: False
Task 10, rs: [0, 2, 0, 0, 0, 0] cnts [0, 10, 0, 0, 0, 0] success_rate: 0.2 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 11: look_at_obj_in_light-CD-None-DeskLamp-308/trial_T20190908_141942_810052
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: look at cd under the desklamp.
[Step 1] get a list of receptacles where a cd is likely to appear.
[Step 2] go to each receptacle in the list until seeing a cd
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a keychain 2.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 1, a bowl 1, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a bowl 2, a cd 1, a creditcard 1, a laptop 2, and a mug 2.
[Step 3] examine the cd under the desklamp
Act: take cd from desklamp
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: Nothing happens.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 1, a desklamp 1, and a mug 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a cd is likely to appear.
[Step 2] go to each receptacle in the list until seeing a cd
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a keychain 2.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 1, a bowl 1, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a bowl 2, a cd 1, a creditcard 1, a laptop 2, and a mug 2.
[Step 3] take the cd from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 23, in solution
AssertionError: Error in [Step 3]: I cannot take cd 1 from the desk 2. The last three interactions before error were:
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a bowl 2, a cd 1, a creditcard 1, a laptop 2, and a mug 2.
I am at desk 2 and holding cd.
[Step 1] get a list of receptacles where a cd is likely to appear.
[Step 2] go to each receptacle in the list until seeing a cd
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a keychain 2.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 1, a bowl 1, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a bowl 2, a cd 1, a creditcard 1, a laptop 2, and a mug 2.
[Step 3] take the cd from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 31, in solution
AssertionError: Error in [Step 3]: I cannot take cd 1 from the desk 2. The last three interactions before error were:
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a pen 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a bowl 2, a cd 1, a creditcard 1, a laptop 2, and a mug 2.
I am at desk 2 and holding cd.

Success: False
Task 11, rs: [0, 2, 0, 0, 0, 0] cnts [0, 11, 0, 0, 0, 0] success_rate: 0.18181818181818182 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 12: look_at_obj_in_light-Book-None-DeskLamp-308/trial_T20190908_020029_636862
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the book with the desklamp.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 1, a bowl 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a creditcard 1, and a pencil 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a bowl 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, a pillow 2, and a pillow 1.
[Step 3] examine the book with the desklamp
Act: go to bed 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 1, a bowl 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a creditcard 1, and a pencil 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a bowl 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, a pillow 2, and a pillow 1.
[Step 3] examine the book with the desklamp
Act: go to bed 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 1, a bowl 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a creditcard 1, and a pencil 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a bowl 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a cellphone 1, a laptop 2, a laptop 1, a pillow 2, and a pillow 1.
[Step 3] examine the book with the desklamp
Act: go to bed 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a bowl 3, a cd 3, a mug 2, and a pencil 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 1, a bowl 2, a cd 1, a cellphone 3, a desklamp 1, a mug 1, a pen 1, and a pencil 1.

Success: False
Task 12, rs: [0, 2, 0, 0, 0, 0] cnts [0, 12, 0, 0, 0, 0] success_rate: 0.16666666666666666 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 13: look_at_obj_in_light-Pencil-None-DeskLamp-308/trial_T20190908_220545_153480
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: look at pencil under the desklamp.
[Step 1] get a list of receptacles where a book is likely to appear.
[Step 2] go to each receptacle in the list until seeing a book
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a mug 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a bowl 2, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a keychain 2, and a pen 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a bowl 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 3, and a pencil 1.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
Act: go to bed 1
Obs: On the bed 1, you see a pillow 2, and a pillow 1.
Act: go to drawer 6
Obs: The drawer 6 is open. In it, you see nothing.
Act: go to drawer 5
Obs: On the drawer 5, you see a pencil 2.
Act: go to drawer 4
Obs: The drawer 4 is open. In it, you see a creditcard 3.
Act: go to drawer 3
Obs: On the drawer 3, you see a book 1.
[Step 3] examine the book with the desklamp
Act: go to bed 1
Obs: On the bed 1, you see a pillow 2, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 3, and a pencil 1.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 3, and a pencil 1.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a pencil is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pencil
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 3, and a pencil 1.
[Step 3] take the pencil from the receptacle
Act: take pencil 1 from desk 2
Obs: You pick up the pencil 1 from the desk 2.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: Nothing happens.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
Done. Success: True
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
Done. Success: True
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 46, in solution
AssertionError: Error in [Step 6]: I cannot turn on desklamp 1 in/on desk 1. The last three interactions before error were:
Act: go to desk 2
Obs: Nothing happens.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
Act: use desklamp 1
Obs: On the desk 1, you see a bowl 2, a creditcard 2, a desklamp 1, a laptop 1, a mug 1, and a pen 2.
I am at desk 1 and holding pencil 1.

Success: True
Task 13, rs: [0, 3, 0, 0, 0, 0] cnts [0, 13, 0, 0, 0, 0] success_rate: 0.23076923076923078 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1, 3], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 14: look_at_obj_in_light-Bowl-None-DeskLamp-308/trial_T20190907_133953_562557
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the bowl with the desklamp.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bowl
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a alarmclock 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 1.
[Step 3] get a list of receptacles where a desklamp is likely to appear.
[Step 4] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 3, a bowl 2, and a mug 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a alarmclock 1, a desklamp 1, a mug 1, and a pencil 1.
[Step 5] examine the bowl with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 39, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 2] go to each receptacle in the list until seeing a pen
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 13, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 2.
[Step 3] take the bowl from the receptacle
Act: take pen 2 from shelf 4
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a bowl 3, a bowl 2, and a mug 2.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a alarmclock 1, a desklamp 1, a mug 1, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bowl
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a alarmclock 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 1.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 23, in solution
AssertionError: Error in [Step 3]: I cannot take bowl 1 from the shelf 2. The last three interactions before error were:
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a alarmclock 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 1.
I am at shelf 2 and holding pen 2.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bowl
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a alarmclock 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 1.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 23, in solution
AssertionError: Error in [Step 3]: I cannot take bowl 1 from the shelf 2. The last three interactions before error were:
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a alarmclock 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 1.
I am at shelf 2 and holding pen 2.

Success: False
Task 14, rs: [0, 3, 0, 0, 0, 0] cnts [0, 14, 0, 0, 0, 0] success_rate: 0.21428571428571427 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 13], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1, 3, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 15: look_at_obj_in_light-AlarmClock-None-DeskLamp-308/trial_T20190908_222933_607649
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the alarmclock with the desklamp.
[Step 1] get a list of receptacles where an alarmclock is likely to appear.
[Step 2] go to each receptacle in the list until seeing an alarmclock
Act: go to safe 1
Obs: The safe 1 is closed.
Act: open safe 1
Obs: You open the safe 1. The safe 1 is open. In it, you see a cellphone 1, and a keychain 1.
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a laptop 1, a pillow 2, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a keychain 2, and a mug 1.
[Step 3] examine the alarmclock with the desklamp
Act: go to bed 1
Obs: On the bed 1, you see a book 1, a laptop 1, a pillow 2, and a pillow 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a keychain 2, and a mug 1.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 1, a desklamp 1, and a laptop 2.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 32, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 1] get a list of receptacles where an alarmclock is likely to appear.
[Step 2] go to each receptacle in the list until seeing an alarmclock
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a cellphone 1, and a keychain 1.
Act: go to drawer 6
Obs: The drawer 6 is closed.
Act: open drawer 6
Obs: You open the drawer 6. The drawer 6 is open. In it, you see a pen 2, and a pen 1.
Act: go to drawer 5
Obs: On the drawer 5, you see a pen 3.
Act: go to drawer 4
Obs: The drawer 4 is closed.
Act: open drawer 4
Obs: You open the drawer 4. The drawer 4 is open. In it, you see a creditcard 2, and a keychain 3.
Act: go to drawer 3
Obs: On the drawer 3, you see nothing.
Act: go to drawer 2
Obs: Nothing happens.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a creditcard 1, and a pencil 1.
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a cellphone 2.
Act: go to shelf 4
Obs: On the shelf 4, you see a cd 3.
Act: go to shelf 3
Obs: On the shelf 3, you see a bowl 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see nothing.
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a keychain 2, and a mug 1.
[Step 3] take the alarmclock from the receptacle
Act: take alarmclock 1 from desk 2
Obs: You pick up the alarmclock 1 from the desk 2.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: Nothing happens.
Act: go to desk 1
Obs: On the desk 1, you see a bowl 1, a desklamp 1, and a laptop 2.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
Done. Success: True

Success: True
Task 15, rs: [0, 4, 0, 0, 0, 0] cnts [0, 15, 0, 0, 0, 0] success_rate: 0.26666666666666666 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 13], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1, 3, -1, 3], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 16: look_at_obj_in_light-Bowl-None-DeskLamp-308/trial_T20190907_133919_856963
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: look at bowl under the desklamp.
[Step 2] go to each receptacle in the list until seeing a pen
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 13, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, and a cd 3.
Act: go to desk 1
Obs: On the desk 1, you see a desklamp 1, a keychain 3, a mug 2, a pen 2, a pen 1, and a pencil 2.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 3.
[Step 3] take the bowl from the receptacle
Act: take pen 3 from shelf 4
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, and a cd 3.
Act: go to desk 1
Obs: On the desk 1, you see a desklamp 1, a keychain 3, a mug 2, a pen 2, a pen 1, and a pencil 2.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bowl
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a pencil 3.
Act: go to shelf 3
Obs: On the shelf 3, you see a desklamp 1, a pen 1, and a pencil 2.
Act: go to shelf 2
Obs: On the shelf 2, you see a mug 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a cellphone 3, and a creditcard 2.
Act: go to drawer 6
Obs: The drawer 6 is closed.
Act: open drawer 6
Obs: You open the drawer 6. The drawer 6 is open. In it, you see nothing.
Act: go to drawer 5
Obs: On the drawer 5, you see a book 2.
Act: go to drawer 4
Obs: The drawer 4 is closed.
Act: open drawer 4
Obs: You open the drawer 4. The drawer 4 is open. In it, you see a cd 2, and a pen 3.
Act: go to drawer 3
Obs: On the drawer 3, you see a cellphone 2.
Act: go to drawer 2
Obs: Nothing happens.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a creditcard 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, and a cd 3.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 23, in solution
AssertionError: Error in [Step 3]: I cannot take bowl 1 from the desk 2. The last three interactions before error were:
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a creditcard 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a bowl 1, and a cd 3.
I am at desk 2 and holding pen 3.

Success: False
Task 16, rs: [0, 4, 0, 0, 0, 0] cnts [0, 16, 0, 0, 0, 0] success_rate: 0.25 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 13, 15], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1, 3, -1, 3, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 17: look_at_obj_in_light-Pencil-None-DeskLamp-308/trial_T20190908_220604_010430
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: examine the pencil with the desklamp.
[Step 1] get a list of receptacles where a pencil is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pencil
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a cellphone 2, a desklamp 1, a keychain 2, a mug 1, and a pencil 3.
[Step 3] examine the pencil with the desklamp
Act: use desklamp
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 24, in solution
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 387, in report
    Act: {self.interaction_history["actions"][-3]}
IndexError: list index out of range
[Step 3] examine the pencil with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 24, in solution
AttributeError: 'Agent' object has no attribute 'examine'
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see a creditcard 1.
Act: go to shelf 4
Obs: On the shelf 4, you see a alarmclock 3.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a cellphone 2, a desklamp 1, and a pencil 2.
[Step 3] take the bowl from the receptacle
Act: take pen 2 from shelf 3
Obs: Nothing happens.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a book 2, a bowl 2, a bowl 1, a cd 2, a mug 3, and a pencil 4.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a cellphone 2, a desklamp 1, a keychain 2, a mug 1, and a pencil 3.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a pencil is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pencil
Act: go to desk 1
Obs: Nothing happens.
Act: go to desk 2
Obs: On the desk 2, you see a book 2, a bowl 2, a bowl 1, a cd 2, a mug 3, and a pencil 4.
[Step 3] examine the pencil with the desklamp
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 24, in solution
AttributeError: 'Agent' object has no attribute 'examine'

Success: False
Task 17, rs: [0, 4, 0, 0, 0, 0] cnts [0, 17, 0, 0, 0, 0] success_rate: 0.23529411764705882 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 13, 15, 16], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1, 3, -1, 3, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 18: look_at_obj_in_light-Mug-None-DeskLamp-308/trial_T20190908_161733_213242
You are in the middle of a room. Looking quickly around you, you see a bed 1, a desk 2, a desk 1, a drawer 6, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a garbagecan 1, a laundryhamper 1, a safe 1, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, and a shelf 1.
Your task is to: look at mug under the desklamp.
[Step 2] go to each receptacle in the list until seeing a pen
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 13, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 3] take the pen from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 22, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a mug 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a creditcard 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a mug 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a pen 1.
[Step 3] take the bowl from the receptacle
Act: take pen 1 from shelf 1
Obs: You pick up the pen 1 from the shelf 1.
[Step 4] get a list of receptacles where a desklamp is likely to appear.
[Step 5] go to each receptacle in the list until seeing a desklamp
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 1, a book 2, a bowl 1, a cd 2, and a mug 3.
Act: go to desk 1
Obs: On the desk 1, you see a creditcard 1, a desklamp 1, a laptop 1, a pencil 2, and a pencil 1.
[Step 6] turn on desklamp
Act: use desklamp 1
Obs: You turn on the desklamp 1.
[Step 1] get a list of receptacles where a bowl is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pen
Act: go to shelf 6
Obs: On the shelf 6, you see nothing.
Act: go to shelf 5
Obs: On the shelf 5, you see nothing.
Act: go to shelf 4
Obs: On the shelf 4, you see a mug 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a creditcard 1, and a desklamp 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a mug 1.
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to drawer 6
Obs: The drawer 6 is closed.
Act: open drawer 6
Obs: You open the drawer 6. The drawer 6 is open. In it, you see a creditcard 3, and a pencil 3.
[Step 3] take the bowl from the receptacle
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 31, in solution
AssertionError: Error in [Step 3]: I cannot take pen 3 from the drawer 6. The last three interactions before error were:
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to drawer 6
Obs: The drawer 6 is closed.
Act: open drawer 6
Obs: You open the drawer 6. The drawer 6 is open. In it, you see a creditcard 3, and a pencil 3.
I am at drawer 6 and holding pen 1.

Success: False
Task 18, rs: [0, 4, 0, 0, 0, 0] cnts [0, 18, 0, 0, 0, 0] success_rate: 0.2222222222222222 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 13, 15, 16, 17], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [-1, -1, -1, -1, 1, 5, -1, -1, -1, -1, -1, -1, 3, -1, 3, -1, -1, -1], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

