You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I was trying to run this on Windows. But it seems like the code tries to looks for an APK in the temp folder, which doesn't exist. Any help on this would be really appreciated!!
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1730255153.349661 4124 trace.cc:90] Unknown tracer: none
E1029 22:25:54.041656 4124 adb_controller.py:131] Failed to execute ADB command (try 1 of 3): [adb -P 5037 -s emulator-5554 install -r -t -g C:\Users\UDITAR~1\AppData\Local\Temp\tmp2xsalreq.apk]
Traceback (most recent call last):
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_controller.py", line 122, in execute_command
cmd_output = subprocess.check_output(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:/Users/Udit Arora/AppData/Local/Android/Sdk/platform-tools/adb.exe', '-P', '5037', '-s', 'emulator-5554', 'install', '-r', '-t', '-g', 'C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk']' returned non-zero exit status 1.
E1029 22:25:54.048936 4124 adb_controller.py:135] **stdout**:
E1029 22:25:54.048936 4124 adb_controller.py:137] b'adb: failed to open C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk: No such file or directory'
E1029 22:25:54.048936 4124 adb_controller.py:137] b'Performing Streamed Install'
E1029 22:25:59.131833 4124 adb_controller.py:131] Failed to execute ADB command (try 2 of 3): [adb -P 5037 -s emulator-5554 install -r -t -g C:\Users\UDITAR~1\AppData\Local\Temp\tmp2xsalreq.apk]
Traceback (most recent call last):
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_controller.py", line 122, in execute_command
cmd_output = subprocess.check_output(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:/Users/Udit Arora/AppData/Local/Android/Sdk/platform-tools/adb.exe', '-P', '5037', '-s', 'emulator-5554', 'install', '-r', '-t', '-g', 'C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk']' returned non-zero exit status 1.
E1029 22:25:59.131833 4124 adb_controller.py:135] **stdout**:
E1029 22:25:59.131833 4124 adb_controller.py:137] b'adb: failed to open C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk: No such file or directory'
E1029 22:25:59.131833 4124 adb_controller.py:137] b'Performing Streamed Install'
Traceback (most recent call last):
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_controller.py", line 122, in execute_command
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:/Users/Udit Arora/AppData/Local/Android/Sdk/platform-tools/adb.exe', '-P', '5037', '-s', 'emulator-5554', 'install', '-r', '-t', '-g', 'C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Udit Arora\Desktop\android_world\minimal_task_runner.py", line 132, in <module>
app.run(main)
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\absl\app.py", line 308, in run
_run_main(main, args)
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\absl\app.py", line 254, in _run_main
sys.exit(main(argv))
^^^^^^^^^^
File "C:\Users\Udit Arora\Desktop\android_world\minimal_task_runner.py", line 128, in main
_main()
File "C:\Users\Udit Arora\Desktop\android_world\minimal_task_runner.py", line 89, in _main
env = env_launcher.load_and_setup_env(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\Desktop\android_world\android_world\env\env_launcher.py", line 125, in load_and_setup_env
env = _get_env(console_port, adb_path, grpc_port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\Desktop\android_world\android_world\env\env_launcher.py", line 36, in _get_env
controller = android_world_controller.get_controller(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\Desktop\android_world\android_world\env\android_world_controller.py", line 308, in get_controller
return AndroidWorldController(android_env_instance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\Desktop\android_world\android_world\env\android_world_controller.py", line 152, in __init__
self._env = a11y_grpc_wrapper.A11yGrpcWrapper(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\wrappers\a11y_grpc_wrapper.py", line 121, in __init__
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\wrappers\a11y_grpc_wrapper.py", line 197, in _install_a11y_forwarding_apk
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\environment.py", line 150, in execute_adb_call
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\coordinator.py", line 181, in execute_adb_call
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_call_parser.py", line 111, in parse
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_call_parser.py", line 287, in _install_apk
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_call_parser.py", line 81, in _execute_command
File "C:\Users\Udit Arora\miniconda3\envs\android_world\Lib\site-packages\android_env-1.2.2-py3.11.egg\android_env\components\adb_controller.py", line 147, in execute_command
android_env.components.errors.AdbControllerError: Error executing adb command: [adb -P 5037 -s emulator-5554 install -r -t -g C:\Users\UDITAR~1\AppData\Local\Temp\tmp2xsalreq.apk]
Caused by: Command '['C:/Users/Udit Arora/AppData/Local/Android/Sdk/platform-tools/adb.exe', '-P', '5037', '-s', 'emulator-5554', 'install', '-r', '-t', '-g', 'C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk']' returned non-zero exit status 1.
adb stdout: [b'adb: failed to open C:\\Users\\UDITAR~1\\AppData\\Local\\Temp\\tmp2xsalreq.apk: No such file or directory\r\nPerforming Streamed Install\r\n']
adb stderr: [None]
The text was updated successfully, but these errors were encountered:
Hi
I was trying to run this on Windows. But it seems like the code tries to looks for an APK in the temp folder, which doesn't exist. Any help on this would be really appreciated!!
The text was updated successfully, but these errors were encountered: