Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runnning on Windows #153

Closed
UditArora2000 opened this issue Oct 30, 2024 · 1 comment
Closed

Runnning on Windows #153

UditArora2000 opened this issue Oct 30, 2024 · 1 comment

Comments

@UditArora2000
Copy link

UditArora2000 commented Oct 30, 2024

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]
@crawles
Copy link
Collaborator

crawles commented Oct 31, 2024

Hi — apologies for the delay. others have run it on windows. You please TAL at #117

@crawles crawles closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants