Skip to content

Meet error when connecting mobile_use environment with android_world docker environment. #22

@zzdcn

Description

@zzdcn

Thanks for sharing your work, I want to run your code locally and have done the docker set up part. However, I when running benchmark/android_world/run.py, it raise errors as below: I wonder if anyone meet such problem, and can kindly offer some guidance.

root@c0a2554a543f:/app/mobile-use# python benchmark/android_world/run.py      --mobileuse_agent_name=MultiAgent      --mobileuse_config_path=benchmark/android_world/configs/MultiAgent_template.yaml 
ANDROID_MAX_STEP 70
ANDROID_ADB_SERVER_PORT 5037
Initializing agent...
W1107 09:59:46.638231 140036482996032 mobile_environ.py:70] Action open is already registered. Overwriting it.
Starting eval with agent mobile_use and writing to /root/android_world/runs/run_20251107T095946638437
Running task: AudioRecorderRecordAudio
======================================
Running task AudioRecorderRecordAudio with goal "Record an audio clip using Audio Recorder app and save it."
W1107 09:59:49.825895 140036482996032 android_world_controller.py:98] Could not get a11y tree, retrying.
Traceback (most recent call last):
  File "/app/mobile-use/benchmark/android_world/mobile_use_agent.py", line 35, in step
    step_data = self.agent.step()
                ^^^^^^^^^^^^^^^^^
  File "/app/mobile-use/mobile_use/agents/multi_agent.py", line 151, in step
    operator_messages = self.operator.get_message(self.episode_data)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/mobile-use/mobile_use/agents/sub_agent.py", line 280, in get_message
    self.get_knowledge(episodedata.goal)
  File "/app/mobile-use/mobile_use/agents/sub_agent.py", line 174, in get_knowledge
    embedding_model_path = self.knowledge_config.embedding_model_path
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'embedding_model_path'
Completed step 1.
Agent indicates task is done.
Task Failed xxxxxxxxxx;  Record an audio clip using Audio Recorder app and save it.


                             task_num  num_complete_trials  mean_success_rate  mean_episode_length  total_runtime_s  num_fail_trials
task                                                                                                                                
AudioRecorderRecordAudio            0                  1.0                0.0                  1.0              5.4              0.0
========= Average =========         0                  1.0                0.0                  1.0              5.4              0.0


               mean_success_rate
difficulty                  easy
tags                            
requires_setup               0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions