Start: 0812-172450

Task 1: pick_two_obj_and_place-SoapBar-None-GarbageCan-424/trial_T20190909_064309_357168
You are in the middle of a room. Looking quickly around you, you see a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a countertop 1, a garbagecan 1, a handtowelholder 2, a handtowelholder 1, a sinkbasin 2, a sinkbasin 1, a toilet 1, a toiletpaperhanger 1, and a towelholder 1.
Your task is to: put two soapbar in garbagecan.
[Step 7] go to the garbagecan and put the second soapbar found in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
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 69, in solution
UnboundLocalError: local variable 'found_soapbar2' referenced before assignment
[Step 3] identify the first soapbar found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a soapbar is likely to appear.
[Step 2] go to each receptacle in the list until seeing a soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a soapbar 2, and a soapbar 1.
[Step 3] identify the first soapbar found and take it
Act: take soapbar 2 from toilet 1
Obs: You pick up the soapbar 2 from the toilet 1.
[Step 4] go to the garbagecan and put the first soapbar found in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
Act: put soapbar 2 in/on garbagecan 1
Obs: You put the soapbar 2 in/on the garbagecan 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a soapbar 1.
[Step 6] identify the second soapbar I just found and take it
Act: take soapbar 1 from toilet 1
Obs: You pick up the soapbar 1 from the toilet 1.
[Step 7] go to the garbagecan and put the second soapbar found in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a soapbar 2.
Act: put soapbar 1 in/on garbagecan 1
Obs: You put the soapbar 1 in/on the garbagecan 1.
Done. Success: True

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

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

Task 2: pick_two_obj_and_place-Pillow-None-Sofa-219/trial_T20190907_163408_914117
You are in the middle of a room. Looking quickly around you, you see a armchair 1, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a dresser 1, a garbagecan 1, a safe 1, a shelf 12, a shelf 11, a shelf 10, a shelf 9, a shelf 8, a shelf 7, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, a shelf 1, a sidetable 1, and a sofa 1.
Your task is to: put two pillow in sofa.
[Step 7] go to the sofa and put the second pillow found on it
Act: go to sofa 1
Obs: On the sofa 1, you see a newspaper 3.
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 69, in solution
UnboundLocalError: local variable 'found_pillow2' referenced before assignment
[Step 3] identify the first pillow found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a pillow is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pillow
Act: go to armchair 1
Obs: On the armchair 1, you see a cellphone 2, a pillow 2, and a pillow 1.
[Step 3] identify the first pillow found and take it
Act: take pillow 2 from armchair 1
Obs: You pick up the pillow 2 from the armchair 1.
[Step 4] go to the sofa and put the first pillow found on it. 
Act: go to sofa 1
Obs: On the sofa 1, you see a newspaper 3.
Act: put pillow 2 in/on sofa 1
Obs: You put the pillow 2 in/on the sofa 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second pillow
Act: go to armchair 1
Obs: On the armchair 1, you see a cellphone 2, and a pillow 1.
[Step 6] identify the second pillow I just found and take it
Act: take pillow 1 from armchair 1
Obs: You pick up the pillow 1 from the armchair 1.
[Step 7] go to the sofa and put the second pillow found on it
Act: go to sofa 1
Obs: On the sofa 1, you see a newspaper 3, and a pillow 2.
Act: put pillow 1 in/on sofa 1
Obs: You put the pillow 1 in/on the sofa 1.
Done. Success: True

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

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

Task 3: pick_two_obj_and_place-CD-None-Safe-308/trial_T20190907_051013_060265
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: find two cd and put them in safe.
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: The safe 1 is closed.
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 69, in solution
UnboundLocalError: local variable 'found_cd2' referenced before assignment
[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 nothing.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a alarmclock 1, and a pen 2.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a cd 2, a keychain 2, a mug 3, a mug 2, and a pen 3.
[Step 3] identify the first cd found and take it
Act: take cd 2 from desk 2
Obs: You pick up the cd 2 from the desk 2.
[Step 4] go to the safe and put the first cd found in it. 
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: put cd 2 in/on safe 1
Obs: You put the cd 2 in/on the safe 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second 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 nothing.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a alarmclock 1, and a pen 2.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a keychain 2, a mug 3, a mug 2, and a pen 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a bowl 1, a cd 1, a cellphone 1, a desklamp 1, and a mug 1.
[Step 6] identify the second cd I just found and take it
Act: take cd 2 from desk 1
Obs: Nothing happens.
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a cd 2.
Act: put cd 2 in/on safe 1
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 71, in solution
AssertionError: Error in [Step 7]: I cannot put the cd 2 in the safe 1. The last three interactions before error were:
Act: take cd 2 from desk 1
Obs: Nothing happens.
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a cd 2.
Act: put cd 2 in/on safe 1
Obs: Nothing happens.
I am at safe 1 and holding None.
[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 nothing.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, a desklamp 1, and a mug 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a pencil 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a alarmclock 1, and a pen 2.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a keychain 2, a mug 3, a mug 2, and a pen 3.
Act: go to desk 1
Obs: On the desk 1, you see a alarmclock 2, a bowl 1, a cd 1, a cellphone 1, a desklamp 1, and a mug 1.
[Step 3] identify the first cd found and take it
Act: take cd 1 from desk 1
Obs: You pick up the cd 1 from the desk 1.
[Step 4] go to the safe and put the first cd found in it
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a cd 2.
Act: put cd 1 in/on safe 1
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True
[Step 5] go to each of the remaining receptacle in the list until seeing a second cd
Act: go to shelf 6
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True
[Step 6] identify the second cd I just found and take it
Act: take cd 1 from shelf 6
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True
Act: put cd 1 in/on safe 1
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True

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

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

Task 4: pick_two_obj_and_place-SoapBar-None-Cabinet-424/trial_T20190909_081746_857594
You are in the middle of a room. Looking quickly around you, you see a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a countertop 1, a garbagecan 1, a handtowelholder 2, a handtowelholder 1, a sinkbasin 2, a sinkbasin 1, a toilet 1, a toiletpaperhanger 1, and a towelholder 1.
Your task is to: find two soapbar and put them in cabinet.
[Step 6] identify the second soapbar I just found and take it
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
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the first soapbar found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a soapbar is likely to appear.
[Step 2] go to each receptacle in the list until seeing a soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a spraybottle 3.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a candle 1.
Act: go to cabinet 3
Obs: The cabinet 3 is closed.
Act: open cabinet 3
Obs: You open the cabinet 3. The cabinet 3 is open. In it, you see a cloth 3.
Act: go to cabinet 4
Obs: The cabinet 4 is closed.
Act: open cabinet 4
Obs: You open the cabinet 4. The cabinet 4 is open. In it, you see a cloth 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a soapbar 2, a soapbar 1, a soapbottle 2, a soapbottle 1, a spraybottle 2, a spraybottle 1, and a toiletpaper 2.
[Step 3] identify the first soapbar found and take it
Act: take soapbar 2 from countertop 1
Obs: You pick up the soapbar 2 from the countertop 1.
[Step 4] go to a cabinet and put the first soapbar found on it. 
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a cloth 1.
Act: put soapbar 2 in/on cabinet 1
Obs: You put the soapbar 2 in/on the cabinet 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a spraybottle 3.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 2
Obs: The cabinet 2 is open. In it, you see a candle 1.
Act: go to cabinet 3
Obs: The cabinet 3 is open. In it, you see a cloth 3.
Act: go to cabinet 4
Obs: The cabinet 4 is open. In it, you see a cloth 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a soapbar 1, a soapbottle 2, a soapbottle 1, a spraybottle 2, a spraybottle 1, and a toiletpaper 2.
[Step 6] identify the second soapbar I just found and take it
Act: take soapbar 1 from countertop 1
Obs: You pick up the soapbar 1 from the countertop 1.
[Step 7] go to a cabinet and put the second soapbar found on it
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a cloth 1, and a soapbar 2.
Act: put soapbar 1 in/on cabinet 1
Obs: You put the soapbar 1 in/on the cabinet 1.
Done. Success: True

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

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

Task 5: pick_two_obj_and_place-SoapBar-None-GarbageCan-424/trial_T20190909_064221_368939
You are in the middle of a room. Looking quickly around you, you see a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a countertop 1, a garbagecan 1, a handtowelholder 2, a handtowelholder 1, a sinkbasin 2, a sinkbasin 1, a toilet 1, a toiletpaperhanger 1, and a towelholder 1.
Your task is to: put two soapbar in garbagecan.
[Step 7] go to the garbagecan and put the second soapbar found in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
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 69, in solution
UnboundLocalError: local variable 'found_soapbar2' referenced before assignment
[Step 4] go to a garbagecan and put the first soapbar found in it.
Act: go to garbagecan 1
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 31, in solution
UnboundLocalError: local variable 'found_soapbar1' referenced before assignment
[Step 1] get a list of receptacles where a soapbar is likely to appear.
[Step 2] go to each receptacle in the list until seeing a soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a candle 3, a spraybottle 2, and a toiletpaper 2.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a cloth 1, and a soapbottle 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a candle 2, and a toiletpaper 1.
Act: go to cabinet 3
Obs: The cabinet 3 is closed.
Act: open cabinet 3
Obs: You open the cabinet 3. The cabinet 3 is open. In it, you see a cloth 2.
Act: go to cabinet 4
Obs: The cabinet 4 is closed.
Act: open cabinet 4
Obs: You open the cabinet 4. The cabinet 4 is open. In it, you see a soapbar 2.
[Step 3] identify the first soapbar found and take it
Act: take soapbar 2 from cabinet 4
Obs: You pick up the soapbar 2 from the cabinet 4.
[Step 4] go to the garbagecan and put the first soapbar found in it.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
Act: put soapbar 2 in/on garbagecan 1
Obs: You put the soapbar 2 in/on the garbagecan 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a candle 3, a spraybottle 2, and a toiletpaper 2.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a cloth 1, and a soapbottle 1.
Act: go to cabinet 2
Obs: The cabinet 2 is open. In it, you see a candle 2, and a toiletpaper 1.
Act: go to cabinet 3
Obs: The cabinet 3 is open. In it, you see a cloth 2.
Act: go to cabinet 4
Obs: The cabinet 4 is open. In it, you see nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see a candle 1, a soapbar 4, a soapbar 3, a soapbar 1, and a spraybottle 1.
[Step 6] identify the second soapbar I just found and take it
Act: take soapbar 4 from countertop 1
Obs: You pick up the soapbar 4 from the countertop 1.
[Step 7] go to the garbagecan and put the second soapbar found in it.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a soapbar 2.
Act: put soapbar 4 in/on garbagecan 1
Obs: You put the soapbar 4 in/on the garbagecan 1.
Done. Success: True

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

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

Task 6: pick_two_obj_and_place-CD-None-Safe-308/trial_T20190907_051056_585414
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: put two cd in safe.
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: The safe 1 is closed.
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 69, in solution
UnboundLocalError: local variable 'found_cd2' referenced before assignment
[Step 3] identify the first cd found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[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 pen 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, 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 a alarmclock 1, a keychain 2, and a pencil 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a cd 2, a cd 1, a cellphone 3, a cellphone 2, a creditcard 1, and a mug 1.
[Step 3] identify the first cd found and take it
Act: take cd 2 from desk 2
Obs: You pick up the cd 2 from the desk 2.
[Step 4] go to the safe and put the first cd found in it. 
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.
Act: put cd 2 in/on safe 1
Obs: You put the cd 2 in/on the safe 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second 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 pen 2.
Act: go to shelf 3
Obs: On the shelf 3, you see a alarmclock 2, 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 a alarmclock 1, a keychain 2, and a pencil 1.
Act: go to desk 2
Obs: On the desk 2, you see a alarmclock 3, a cd 1, a cellphone 3, a cellphone 2, a creditcard 1, and a mug 1.
[Step 6] identify the second cd I just found and take it
Act: take cd 1 from desk 2
Obs: You pick up the cd 1 from the desk 2.
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a cd 2, and a cellphone 1.
Act: put cd 1 in/on safe 1
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True

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

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

Task 7: pick_two_obj_and_place-Pillow-None-Sofa-219/trial_T20190907_163240_345855
You are in the middle of a room. Looking quickly around you, you see a armchair 1, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a dresser 1, a garbagecan 1, a safe 1, a shelf 12, a shelf 11, a shelf 10, a shelf 9, a shelf 8, a shelf 7, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, a shelf 1, a sidetable 1, and a sofa 1.
Your task is to: find two pillow and put them in sofa.
[Step 7] go to the sofa and put the second pillow found on it
Act: go to sofa 1
Obs: On the sofa 1, you see nothing.
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 69, in solution
UnboundLocalError: local variable 'found_pillow2' referenced before assignment
[Step 3] identify the first pillow found and take it
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 26, in solution
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a pillow is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pillow
Act: go to armchair 1
Obs: On the armchair 1, you see a pillow 2, a pillow 1, and a remotecontrol 1.
[Step 3] identify the first pillow found and take it
Act: take pillow 2 from armchair 1
Obs: You pick up the pillow 2 from the armchair 1.
[Step 4] go to the sofa and put the first pillow found on it. 
Act: go to sofa 1
Obs: On the sofa 1, you see nothing.
Act: put pillow 2 in/on sofa 1
Obs: You put the pillow 2 in/on the sofa 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second pillow
Act: go to armchair 1
Obs: On the armchair 1, you see a pillow 1, and a remotecontrol 1.
[Step 6] identify the second pillow I just found and take it
Act: take pillow 1 from armchair 1
Obs: You pick up the pillow 1 from the armchair 1.
[Step 7] go to the sofa and put the second pillow found on it
Act: go to sofa 1
Obs: On the sofa 1, you see a pillow 2.
Act: put pillow 1 in/on sofa 1
Obs: You put the pillow 1 in/on the sofa 1.
Done. Success: True

Success: True
Task 7, rs: [0, 0, 0, 0, 0, 7] cnts [0, 0, 0, 0, 0, 7] success_rate: 1.0 

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

Task 8: pick_two_obj_and_place-KeyChain-None-Safe-219/trial_T20190909_012027_782483
You are in the middle of a room. Looking quickly around you, you see a armchair 1, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a dresser 1, a garbagecan 1, a safe 1, a shelf 12, a shelf 11, a shelf 10, a shelf 9, a shelf 8, a shelf 7, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, a shelf 1, a sidetable 1, and a sofa 1.
Your task is to: put two keychain in safe.
[Step 7] go to the safe and put the second keychain found in it
Act: go to safe 1
Obs: The safe 1 is closed.
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 69, in solution
UnboundLocalError: local variable 'found_keychain2' referenced before assignment
[Step 7] go to the safe and put the second keychain found in it
Act: go to safe 1
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 69, in solution
UnboundLocalError: local variable 'found_keychain2' referenced before assignment
[Step 1] get a list of receptacles where a keychain is likely to appear.
[Step 2] go to each receptacle in the list until seeing a keychain
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 nothing.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see nothing.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a creditcard 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 keychain 3, and a watch 2.
[Step 3] identify the first keychain found and take it
Act: take keychain 3 from drawer 4
Obs: You pick up the keychain 3 from the drawer 4.
[Step 4] go to the safe and put the first keychain found in it
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 statue 2, and a watch 3.
Act: put keychain 3 in/on safe 1
Obs: You put the keychain 3 in/on the safe 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second keychain
Act: go to drawer 1
Obs: The drawer 1 is open. In it, you see nothing.
Act: go to drawer 2
Obs: The drawer 2 is open. In it, you see nothing.
Act: go to drawer 3
Obs: The drawer 3 is open. In it, you see a creditcard 2.
Act: go to drawer 4
Obs: The drawer 4 is open. In it, you see a watch 2.
Act: go to drawer 5
Obs: The drawer 5 is closed.
Act: open drawer 5
Obs: You open the drawer 5. The drawer 5 is open. In it, you see nothing.
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a vase 1.
Act: go to cabinet 2
Obs: Nothing happens.
Act: go to cabinet 3
Obs: The cabinet 3 is closed.
Act: open cabinet 3
Obs: You open the cabinet 3. The cabinet 3 is open. In it, you see a newspaper 1.
Act: go to cabinet 4
Obs: Nothing happens.
Act: go to dresser 1
Obs: On the dresser 1, you see a box 1, a creditcard 1, a keychain 2, a keychain 1, a laptop 1, a statue 1, and a tissuebox 2.
[Step 6] identify the second keychain found and take it
Act: take keychain 2 from dresser 1
Obs: You pick up the keychain 2 from the dresser 1.
[Step 7] go to the safe and put the second keychain found in it
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a keychain 3, a statue 2, and a watch 3.
Act: put keychain 2 in/on safe 1
Obs: You put the keychain 2 in/on the safe 1.
Done. Success: True

Success: True
Task 8, rs: [0, 0, 0, 0, 0, 8] cnts [0, 0, 0, 0, 0, 8] success_rate: 1.0 

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

Task 9: pick_two_obj_and_place-CD-None-Safe-308/trial_T20190907_050942_897916
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: put two cd in safe.
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: The safe 1 is closed.
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 69, in solution
UnboundLocalError: local variable 'found_cd2' referenced before assignment
[Step 3] identify the first cd found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[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 1.
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 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 a alarmclock 1.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a cd 2, a cd 1, a creditcard 3, a mug 2, a pencil 3, and a pencil 2.
[Step 3] identify the first cd found and take it
Act: take cd 2 from desk 2
Obs: You pick up the cd 2 from the desk 2.
[Step 4] go to the safe and put the first cd found in it. 
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 2.
Act: put cd 2 in/on safe 1
Obs: You put the cd 2 in/on the safe 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second 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 1.
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 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 a alarmclock 1.
Act: go to desk 2
Obs: On the desk 2, you see a bowl 2, a cd 1, a creditcard 3, a mug 2, a pencil 3, and a pencil 2.
[Step 6] identify the second cd I just found and take it
Act: take cd 1 from desk 2
Obs: You pick up the cd 1 from the desk 2.
[Step 7] go to the safe and put the second cd found in it
Act: go to safe 1
Obs: The safe 1 is open. In it, you see a cd 2, and a cellphone 2.
Act: put cd 1 in/on safe 1
Obs: You put the cd 1 in/on the safe 1.
Done. Success: True

Success: True
Task 9, rs: [0, 0, 0, 0, 0, 9] cnts [0, 0, 0, 0, 0, 9] success_rate: 1.0 

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

Task 10: pick_two_obj_and_place-Pillow-None-Sofa-219/trial_T20190907_163327_486300
You are in the middle of a room. Looking quickly around you, you see a armchair 1, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a dresser 1, a garbagecan 1, a safe 1, a shelf 12, a shelf 11, a shelf 10, a shelf 9, a shelf 8, a shelf 7, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, a shelf 1, a sidetable 1, and a sofa 1.
Your task is to: put two pillow in sofa.
[Step 7] go to the sofa and put the second pillow found on it
Act: go to sofa 1
Obs: On the sofa 1, you see a creditcard 1, and a remotecontrol 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 69, in solution
UnboundLocalError: local variable 'found_pillow2' referenced before assignment
[Step 3] identify the first pillow found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a pillow is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pillow
Act: go to armchair 1
Obs: On the armchair 1, you see a pillow 2, and a pillow 1.
[Step 3] identify the first pillow found and take it
Act: take pillow 2 from armchair 1
Obs: You pick up the pillow 2 from the armchair 1.
[Step 4] go to the sofa and put the first pillow found on it. 
Act: go to sofa 1
Obs: On the sofa 1, you see a creditcard 1, and a remotecontrol 2.
Act: put pillow 2 in/on sofa 1
Obs: You put the pillow 2 in/on the sofa 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second pillow
Act: go to armchair 1
Obs: On the armchair 1, you see a pillow 1.
[Step 6] identify the second pillow I just found and take it
Act: take pillow 1 from armchair 1
Obs: You pick up the pillow 1 from the armchair 1.
[Step 7] go to the sofa and put the second pillow found on it
Act: go to sofa 1
Obs: On the sofa 1, you see a creditcard 1, a pillow 2, and a remotecontrol 2.
Act: put pillow 1 in/on sofa 1
Obs: You put the pillow 1 in/on the sofa 1.
Done. Success: True

Success: True
Task 10, rs: [0, 0, 0, 0, 0, 10] cnts [0, 0, 0, 0, 0, 10] success_rate: 1.0 

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

Task 11: pick_two_obj_and_place-ToiletPaper-None-Cabinet-424/trial_T20190906_202926_527010
You are in the middle of a room. Looking quickly around you, you see a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a countertop 1, a garbagecan 1, a handtowelholder 2, a handtowelholder 1, a sinkbasin 2, a sinkbasin 1, a toilet 1, a toiletpaperhanger 1, and a towelholder 1.
Your task is to: find two toiletpaper and put them in cabinet.
[Step 7] go to a cabinet and put the second toiletpaper found on it
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
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 70, in solution
UnboundLocalError: local variable 'found_toiletpaper2' referenced before assignment
[Step 7] go to a cabinet and put the second toiletpaper found on it
Act: go to cabinet 1
Obs: Nothing happens.
Act: put None in/on cabinet 1
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 75, in solution
AssertionError: Error in [Step 7]: I cannot put the None on the cabinet 1. The last three interactions before error were:
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: go to cabinet 1
Obs: Nothing happens.
Act: put None in/on cabinet 1
Obs: Nothing happens.
I am at cabinet 1 and holding None.
[Step 1] get a list of receptacles where a toiletpaper is likely to appear.
[Step 2] go to each receptacle in the list until seeing a toiletpaper
Act: go to toiletpaperhanger 1
Obs: On the toiletpaperhanger 1, you see nothing.
[Step 3] identify the first toiletpaper found and take it
Act: take toiletpaper 1 from toiletpaperhanger 1
Obs: Nothing happens.
[Step 4] go to a cabinet and put the first toiletpaper found on it. 
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a candle 2, and a cloth 1.
Act: put toiletpaper 1 in/on cabinet 1
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 32, in solution
AssertionError: Error in [Step 4]: I cannot put the toiletpaper 1 on the cabinet 1. The last three interactions before error were:
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a candle 2, and a cloth 1.
Act: put toiletpaper 1 in/on cabinet 1
Obs: Nothing happens.
I am at cabinet 1 and holding None.
[Step 1] get a list of receptacles where a toiletpaper is likely to appear.
[Step 2] go to each receptacle in the list until seeing a toiletpaper
Act: go to toiletpaperhanger 1
Obs: On the toiletpaperhanger 1, you see nothing.
[Step 3] identify the first toiletpaper found and take it
Act: take toiletpaper 1 from toiletpaperhanger 1
Obs: Nothing happens.
[Step 4] go to a cabinet and put the first toiletpaper found on it. 
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a candle 2, and a cloth 1.
Act: put toiletpaper 1 in/on cabinet 1
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 32, in solution
AssertionError: Error in [Step 4]: I cannot put the toiletpaper 1 on the cabinet 1. The last three interactions before error were:
Act: take toiletpaper 1 from toiletpaperhanger 1
Obs: Nothing happens.
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a candle 2, and a cloth 1.
Act: put toiletpaper 1 in/on cabinet 1
Obs: Nothing happens.
I am at cabinet 1 and holding None.
[Step 1] get a list of receptacles where a toiletpaper is likely to appear.
[Step 2] go to each receptacle in the list until seeing a toiletpaper
Act: go to toiletpaperhanger 1
Obs: On the toiletpaperhanger 1, you see nothing.
[Step 3] identify the first toiletpaper found and take it
Act: take toiletpaper 1 from toiletpaperhanger 1
Obs: Nothing happens.
[Step 4] go to a cabinet and put the first toiletpaper found on it. 
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a candle 2, and a cloth 1.
Act: put toiletpaper 1 in/on cabinet 1
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 32, in solution
AssertionError: Error in [Step 4]: I cannot put the toiletpaper 1 on the cabinet 1. The last three interactions before error were:
Act: take toiletpaper 1 from toiletpaperhanger 1
Obs: Nothing happens.
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a candle 2, and a cloth 1.
Act: put toiletpaper 1 in/on cabinet 1
Obs: Nothing happens.
I am at cabinet 1 and holding None.

Success: False
Task 11, rs: [0, 0, 0, 0, 0, 10] cnts [0, 0, 0, 0, 0, 11] success_rate: 0.9090909090909091 

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

Task 12: pick_two_obj_and_place-PepperShaker-None-Drawer-10/trial_T20190912_221016_460197
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put two peppershaker in drawer.
[Step 3] identify the peppershaker found and take it
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 28, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the peppershaker found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a peppershaker is likely to appear.
[Step 2] go to each receptacle in the list until seeing a peppershaker
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 2, a bowl 2, a bowl 1, a bread 2, a cup 2, a cup 1, a pan 2, and a potato 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a plate 2.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a soapbottle 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a plate 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a glassbottle 1.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see a dishsponge 1, and a glassbottle 2.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a creditcard 2, a egg 1, and a tomato 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a butterknife 1, a cellphone 1, a cup 3, a knife 1, a pan 1, a papertowelroll 1, a peppershaker 1, a saltshaker 1, and a spatula 1.
[Step 3] identify the peppershaker found and take it
Act: take peppershaker 1 from countertop 2
Obs: You pick up the peppershaker 1 from the countertop 2.
[Step 4] go to a drawer and put the peppershaker found in it
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 spoon 1.
Act: put peppershaker 1 in/on drawer 1
Obs: You put the peppershaker 1 in/on the drawer 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second peppershaker
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 2, a bowl 2, a bowl 1, a bread 2, a cup 2, a cup 1, a pan 2, and a potato 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a plate 2.
Act: go to cabinet 2
Obs: The cabinet 2 is open. In it, you see a soapbottle 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a plate 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a glassbottle 1.
Act: go to cabinet 5
Obs: The cabinet 5 is open. In it, you see a dishsponge 1, and a glassbottle 2.
Act: go to cabinet 6
Obs: The cabinet 6 is open. In it, you see nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a creditcard 2, a egg 1, and a tomato 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a butterknife 1, a cellphone 1, a cup 3, a knife 1, a pan 1, a papertowelroll 1, a saltshaker 1, and a spatula 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a butterknife 2, a creditcard 3, a dishsponge 3, a houseplant 1, a knife 2, a lettuce 1, a peppershaker 2, a spatula 3, a vase 3, a vase 2, and a vase 1.
[Step 6] identify the second peppershaker found and take it
Act: take peppershaker 2 from countertop 3
Obs: You pick up the peppershaker 2 from the countertop 3.
[Step 7] go to a drawer and put the second peppershaker found in it
Act: go to drawer 1
Obs: The drawer 1 is open. In it, you see a peppershaker 1, and a spoon 1.
Act: put peppershaker 2 in/on drawer 1
Obs: You put the peppershaker 2 in/on the drawer 1.
Done. Success: True

Success: True
Task 12, rs: [0, 0, 0, 0, 0, 11] cnts [0, 0, 0, 0, 0, 12] success_rate: 0.9166666666666666 

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

Task 13: pick_two_obj_and_place-SoapBar-None-Cabinet-424/trial_T20190909_081720_491733
You are in the middle of a room. Looking quickly around you, you see a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a countertop 1, a garbagecan 1, a handtowelholder 2, a handtowelholder 1, a sinkbasin 2, a sinkbasin 1, a toilet 1, a toiletpaperhanger 1, and a towelholder 1.
Your task is to: find two soapbar and put them in cabinet.
[Step 6] identify the second soapbar I just found and take it
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
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the first soapbar found and take it
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
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where a soapbar is likely to appear.
[Step 2] go to each receptacle in the list until seeing a soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a candle 1, a soapbar 2, and a spraybottle 3.
[Step 3] identify the first soapbar found and take it
Act: take soapbar 2 from toilet 1
Obs: You pick up the soapbar 2 from the toilet 1.
[Step 4] go to a cabinet and put the first soapbar found on it. 
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a cloth 1.
Act: put soapbar 2 in/on cabinet 1
Obs: You put the soapbar 2 in/on the cabinet 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a candle 1, and a spraybottle 3.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a spraybottle 2.
Act: go to cabinet 3
Obs: The cabinet 3 is closed.
Act: open cabinet 3
Obs: You open the cabinet 3. The cabinet 3 is open. In it, you see a toiletpaper 2.
Act: go to cabinet 4
Obs: The cabinet 4 is closed.
Act: open cabinet 4
Obs: You open the cabinet 4. The cabinet 4 is open. In it, you see a cloth 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a soapbar 1, a soapbottle 1, a spraybottle 1, and a toiletpaper 1.
[Step 6] identify the second soapbar I just found and take it
Act: take soapbar 1 from countertop 1
Obs: You pick up the soapbar 1 from the countertop 1.
[Step 7] go to a cabinet and put the second soapbar found on it
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a cloth 1, and a soapbar 2.
Act: put soapbar 1 in/on cabinet 1
Obs: You put the soapbar 1 in/on the cabinet 1.
Done. Success: True

Success: True
Task 13, rs: [0, 0, 0, 0, 0, 12] cnts [0, 0, 0, 0, 0, 13] success_rate: 0.9230769230769231 

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

Task 14: pick_two_obj_and_place-PepperShaker-None-Drawer-10/trial_T20190908_010306_215435
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put two peppershaker in drawer.
[Step 3] identify the peppershaker found and take it
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 28, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 5] go to each of the remaining receptacle in the list until seeing a second peppershaker
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 36, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 1] get a list of receptacles where a peppershaker is likely to appear.
[Step 2] go to each receptacle in the list until seeing a peppershaker
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 1, a egg 2, a plate 1, and a potato 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a mug 2, and a peppershaker 2.
[Step 3] identify the first peppershaker found and take it
Act: take peppershaker 2 from cabinet 1
Obs: You pick up the peppershaker 2 from the cabinet 1.
[Step 4] go to a drawer and put the first peppershaker found in it
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 cellphone 1, and a fork 1.
Act: put peppershaker 2 in/on drawer 1
Obs: You put the peppershaker 2 in/on the drawer 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second peppershaker
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a egg 2, a plate 1, and a potato 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a mug 2.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a peppershaker 1.
[Step 6] identify the second peppershaker I just found and take it
Act: take peppershaker 1 from cabinet 2
Obs: You pick up the peppershaker 1 from the cabinet 2.
[Step 7] go to a drawer and put the second peppershaker found in it
Act: go to drawer 1
Obs: The drawer 1 is open. In it, you see a cellphone 1, a fork 1, and a peppershaker 2.
Act: put peppershaker 1 in/on drawer 1
Obs: You put the peppershaker 1 in/on the drawer 1.
Done. Success: True

Success: True
Task 14, rs: [0, 0, 0, 0, 0, 13] cnts [0, 0, 0, 0, 0, 14] success_rate: 0.9285714285714286 

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

Task 15: pick_two_obj_and_place-KeyChain-None-Safe-219/trial_T20190909_011803_423115
You are in the middle of a room. Looking quickly around you, you see a armchair 1, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a drawer 5, a drawer 4, a drawer 3, a drawer 2, a drawer 1, a dresser 1, a garbagecan 1, a safe 1, a shelf 12, a shelf 11, a shelf 10, a shelf 9, a shelf 8, a shelf 7, a shelf 6, a shelf 5, a shelf 4, a shelf 3, a shelf 2, a shelf 1, a sidetable 1, and a sofa 1.
Your task is to: put two keychain in safe.
[Step 7] go to the safe and put the second keychain found in it
Act: go to safe 1
Obs: The safe 1 is closed.
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 69, in solution
UnboundLocalError: local variable 'found_keychain2' referenced before assignment
Act: go to cabinet 4
Obs: The cabinet 4 is closed.
Act: open cabinet 4
Obs: You open the cabinet 4. The cabinet 4 is open. In it, you see a vase 2.
Act: go to cabinet 3
Obs: Nothing happens.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see nothing.
Act: go to cabinet 1
Obs: Nothing happens.
Act: go to drawer 5
Obs: The drawer 5 is closed.
Act: open drawer 5
Obs: You open the drawer 5. The drawer 5 is open. In it, 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 nothing.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see nothing.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a creditcard 1.
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 nothing.
Act: go to dresser 1
Obs: On the dresser 1, you see a cellphone 2, a cellphone 1, a laptop 1, a newspaper 1, a statue 1, and a vase 1.
Act: go to sidetable 1
Obs: On the sidetable 1, you see a keychain 1, and a watch 1.
Act: take keychain 1 from sidetable 1
Obs: You pick up the keychain 1 from the sidetable 1.
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 watch 3, and a watch 2.
Act: put keychain 1 in/on safe 1
Obs: You put the keychain 1 in/on the safe 1.
Act: go to cabinet 4
Obs: The cabinet 4 is open. In it, you see a vase 2.
Act: go to cabinet 3
Obs: Nothing happens.
Act: go to cabinet 2
Obs: The cabinet 2 is open. In it, you see nothing.
Act: go to cabinet 1
Obs: Nothing happens.
Act: go to drawer 5
Obs: The drawer 5 is open. In it, you see nothing.
Act: go to drawer 4
Obs: The drawer 4 is open. In it, you see nothing.
Act: go to drawer 3
Obs: The drawer 3 is open. In it, you see nothing.
Act: go to drawer 2
Obs: The drawer 2 is open. In it, you see a creditcard 1.
Act: go to drawer 1
Obs: The drawer 1 is open. In it, you see nothing.
Act: go to dresser 1
Obs: On the dresser 1, you see a cellphone 2, a cellphone 1, a laptop 1, a newspaper 1, a statue 1, and a vase 1.
Act: go to sidetable 1
Obs: On the sidetable 1, you see a watch 1.
Act: go to armchair 1
Obs: On the armchair 1, you see a cellphone 3, and a pillow 1.
Act: go to shelf 12
Obs: On the shelf 12, you see nothing.
Act: go to shelf 11
Obs: On the shelf 11, you see nothing.
Act: go to shelf 10
Obs: On the shelf 10, you see a box 2.
Act: go to shelf 9
Obs: On the shelf 9, you see a tissuebox 1.
Act: go to shelf 8
Obs: On the shelf 8, you see nothing.
Act: go to shelf 7
Obs: On the shelf 7, you see nothing.
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 nothing.
Act: go to shelf 2
Obs: Nothing happens.
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
Act: go to sofa 1
Obs: On the sofa 1, you see a box 1, a keychain 2, and a remotecontrol 1.
Act: take keychain 2 from sofa 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
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 58, in solution
AssertionError: Error in [Step 7]: I cannot put the keychain 2 in the safe 1. The last three interactions before error were:
Act: take keychain 2 from sofa 1
Obs: You pick up the keychain 2 from the sofa 1.
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
I am at safe 1 and holding None.
[Step 1] get a list of receptacles where a keychain is likely to appear.
[Step 2] go to each receptacle in the list until seeing a keychain
Act: go to drawer 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
[Step 3] identify the first keychain found and take it
Act: take keychain 2 from drawer 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
[Step 4] go to the safe and put the first keychain found in it
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
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
AssertionError: Error in [Step 4]: I cannot put the keychain 2 in the safe 1. The last three interactions before error were:
Act: take keychain 2 from drawer 1
Obs: You pick up the keychain 2 from the sofa 1.
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
I am at safe 1 and holding None.
[Step 1] get a list of receptacles where a keychain is likely to appear.
[Step 2] go to each receptacle in the list until seeing a keychain
Act: go to drawer 5
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
[Step 3] identify the first keychain found and take it
Act: take keychain 2 from drawer 5
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
[Step 4] go to the safe and put the first keychain found in it
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
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
AssertionError: Error in [Step 4]: I cannot put the keychain 2 in the safe 1. The last three interactions before error were:
Act: take keychain 2 from drawer 5
Obs: You pick up the keychain 2 from the sofa 1.
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
I am at safe 1 and holding None.
[Step 1] get a list of receptacles where a keychain is likely to appear.
[Step 2] go to each receptacle in the list until seeing a keychain
Act: go to drawer 5
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
[Step 3] identify the keychain found and take it
Act: take keychain 2 from drawer 5
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
[Step 4] go to the safe and put the keychain found in it
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Done. Success: False
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
AssertionError: Error in [Step 4]: I cannot put the keychain 2 in the safe 1. The last three interactions before error were:
Act: take keychain 2 from drawer 5
Obs: You pick up the keychain 2 from the sofa 1.
Act: go to safe 1
Obs: You pick up the keychain 2 from the sofa 1.
Act: put keychain 2 in/on safe 1
Obs: You pick up the keychain 2 from the sofa 1.
I am at safe 1 and holding None.

Success: False
Task 15, rs: [0, 0, 0, 0, 0, 13] cnts [0, 0, 0, 0, 0, 15] success_rate: 0.8666666666666667 

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

Task 16: pick_two_obj_and_place-PepperShaker-None-Drawer-10/trial_T20190912_221141_608117
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: find two peppershaker and put them in drawer.
[Step 3] identify the first peppershaker found and take it
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 28, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 7] go to a drawer and put the second peppershaker found in it
Act: go to drawer 1
Obs: The drawer 1 is closed.
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 72, in solution
UnboundLocalError: local variable 'found_peppershaker2' referenced before assignment
[Step 1] get a list of receptacles where a peppershaker is likely to appear.
[Step 2] go to each receptacle in the list until seeing a peppershaker
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bowl 2, a bowl 1, a cup 1, a egg 2, a lettuce 1, a mug 2, a mug 1, a plate 2, a potato 2, a tomato 2, and a tomato 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a dishsponge 1, a glassbottle 1, and a peppershaker 2.
[Step 3] identify the first peppershaker found and take it
Act: take peppershaker 2 from cabinet 1
Obs: You pick up the peppershaker 2 from the cabinet 1.
[Step 4] go to a drawer and put the first peppershaker found in it
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 spatula 1.
Act: put peppershaker 2 in/on drawer 1
Obs: You put the peppershaker 2 in/on the drawer 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second peppershaker
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 2, a bowl 1, a cup 1, a egg 2, a lettuce 1, a mug 2, a mug 1, a plate 2, a potato 2, a tomato 2, and a tomato 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a dishsponge 1, and a glassbottle 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see nothing.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a plate 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a peppershaker 1.
[Step 6] identify the second peppershaker found and take it
Act: take peppershaker 1 from cabinet 4
Obs: You pick up the peppershaker 1 from the cabinet 4.
[Step 7] go to a drawer and put the second peppershaker found in it
Act: go to drawer 1
Obs: The drawer 1 is open. In it, you see a creditcard 1, a peppershaker 2, and a spatula 1.
Act: put peppershaker 1 in/on drawer 1
Obs: You put the peppershaker 1 in/on the drawer 1.
Done. Success: True

Success: True
Task 16, rs: [0, 0, 0, 0, 0, 14] cnts [0, 0, 0, 0, 0, 16] success_rate: 0.875 

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

Task 17: pick_two_obj_and_place-SoapBar-None-GarbageCan-424/trial_T20190909_064053_839817
You are in the middle of a room. Looking quickly around you, you see a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a countertop 1, a garbagecan 1, a handtowelholder 2, a handtowelholder 1, a sinkbasin 2, a sinkbasin 1, a toilet 1, a toiletpaperhanger 1, and a towelholder 1.
Your task is to: put two soapbar in garbagecan.
[Step 7] go to the garbagecan and put the second soapbar found in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
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 69, in solution
UnboundLocalError: local variable 'found_soapbar2' referenced before assignment
[Step 4] go to a garbagecan and put the first soapbar found in it
Act: go to garbagecan 1
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 31, in solution
UnboundLocalError: local variable 'found_soapbar1' referenced before assignment
[Step 1] get a list of receptacles where a soapbar is likely to appear.
[Step 2] go to each receptacle in the list until seeing a soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a candle 2, and a soapbottle 3.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 1
Obs: The cabinet 1 is closed.
Act: open cabinet 1
Obs: You open the cabinet 1. The cabinet 1 is open. In it, you see a soapbottle 2.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a spraybottle 1, and a toiletpaper 2.
Act: go to cabinet 3
Obs: The cabinet 3 is closed.
Act: open cabinet 3
Obs: You open the cabinet 3. The cabinet 3 is open. In it, you see a cloth 1.
Act: go to cabinet 4
Obs: The cabinet 4 is closed.
Act: open cabinet 4
Obs: You open the cabinet 4. The cabinet 4 is open. In it, you see a spraybottle 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a candle 1, a soapbar 2, a soapbar 1, a soapbottle 1, and a spraybottle 3.
[Step 3] identify the first soapbar found and take it
Act: take soapbar 2 from countertop 1
Obs: You pick up the soapbar 2 from the countertop 1.
[Step 4] go to the garbagecan and put the first soapbar found in it.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
Act: put soapbar 2 in/on garbagecan 1
Obs: You put the soapbar 2 in/on the garbagecan 1.
[Step 5] go to each of the remaining receptacle in the list until seeing a second soapbar
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see nothing.
Act: go to sinkbasin 2
Obs: On the sinkbasin 2, you see nothing.
Act: go to toilet 1
Obs: On the toilet 1, you see a candle 2, and a soapbottle 3.
Act: go to handtowelholder 1
Obs: On the handtowelholder 1, you see nothing.
Act: go to handtowelholder 2
Obs: On the handtowelholder 2, you see a handtowel 1.
Act: go to cabinet 1
Obs: The cabinet 1 is open. In it, you see a soapbottle 2.
Act: go to cabinet 2
Obs: The cabinet 2 is open. In it, you see a spraybottle 1, and a toiletpaper 2.
Act: go to cabinet 3
Obs: The cabinet 3 is open. In it, you see a cloth 1.
Act: go to cabinet 4
Obs: The cabinet 4 is open. In it, you see a spraybottle 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a candle 1, a soapbar 1, a soapbottle 1, and a spraybottle 3.
[Step 6] identify the second soapbar I just found and take it
Act: take soapbar 1 from countertop 1
Obs: You pick up the soapbar 1 from the countertop 1.
[Step 7] go to the garbagecan and put the second soapbar found in it.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a soapbar 2.
Act: put soapbar 1 in/on garbagecan 1
Obs: You put the soapbar 1 in/on the garbagecan 1.
Done. Success: True

Success: True
Task 17, rs: [0, 0, 0, 0, 0, 15] cnts [0, 0, 0, 0, 0, 17] success_rate: 0.8823529411764706 

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

