AppAgent
AppAgent copied to clipboard
ABD Command execution failed: adb -s 000002f62f317e4e shell screencap -p "Phone Storage/sdcard/Pictures/Screenshots"/1_before.png
PS D:\PythonWorkSpace\AppAgent> python learn.py Warning! No module named 'sounddevice' Warning! No module named 'keras' Welcome to the exploration phase of AppAgent! The exploration phase aims at generating documentations for UI elements through either autonomous exploration or human demonstration. Both options are task-oriented, which means you need to give a task description. During autonomous exploration, the agent will try to complete the task by interacting with possible elements on the UI within limited rounds. Documentations will be generated during the process of interacting with the correct elements to proceed with the task. Human demonstration relies on the user to show the agent how to complete the given task, and the agent will generate documentations for the elements interacted during the human demo. To start, please enter the main interface of the app on your phone.
Choose from the following modes:
- autonomous exploration
- human demonstration Type 1 or 2.
1 What is the name of the target app?
X Warning! No module named 'sounddevice' Warning! No module named 'keras' List of devices attached: ['000002f62f317e4e']
Device selected: 000002f62f317e4e
Screen resolution of 000002f62f317e4e: 1080x2400
Please enter the description of the task you want me to complete in a few sentences:
follow bill gates Round 1
Command execution failed: adb -s 000002f62f317e4e shell screencap -p "Phone Storage/sdcard/Pictures/Screenshots"/1_before.png
usage: screencap [-hp] [-d display-id] [FILENAME] -h: this message -p: save the file as a png. -d: specify the physical display ID to capture (default: 0) see "dumpsys SurfaceFlinger --display-id" for valid display IDs. If FILENAME ends with .png it will be saved as a png. If FILENAME is not given, the results will be printed to stdout.
Command execution failed: adb -s 000002f62f317e4e pull "Phone Storage/sdcard"/1.xml ./apps\X\demos\self_explore_2023-12-25_21-09-23\1.xml
Autonomous exploration finished unexpectedly. 0 docs generated.
I believe there is something wrong with your ANDROID_XML_DIR setting. Where do the quotation marks around Phone Storage/sdcard come from? Normally the path would just be /sdcard/1.xml.
My phone do not own a sdcard, I could just use my Phone Storage.How should I rectify it? I used to search for resolution. It's said that a sigle quotation could make up for the space in the path.
Original Email
Sender:"Jiaxuan Liu"< @.*** >;
Sent Time:2023/12/25 23:17
To:"mnotgod96/AppAgent"< @.*** >;
Cc recipient:"CharmanY1n"< @.*** >;"Author"< @.*** >;
Subject:Re: [mnotgod96/AppAgent] ABD Command execution failed: adb -s000002f62f317e4e shell screencap -p "PhoneStorage/sdcard/Pictures/Screenshots"/1_before.png (Issue #7)
I believe there is something wrong with your ANDROID_XML_DIR setting. Where do the quotation marks around Phone Storage/sdcard come from? Normally the path would just be /sdcard/1.xml.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Open the mobile phone storage and see which directory is missing from the path reported in the error. Creating it can save the problem.
I am also getting the same error, I am using an Emulater with Pixel 5 as the mobile. What should be the path for my case?
I am facing the same issue, but i am not able to understand where this 1_before.png coming from. What should be my path for the two paramters in the config file
@mohitpawar473 check my latest reply here https://github.com/mnotgod96/AppAgent/issues/23#issuecomment-1879734053