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

maestro start-device cannot run "uname" on Windows #2281

Open
1 task done
jerone opened this issue Feb 2, 2025 · 2 comments
Open
1 task done

maestro start-device cannot run "uname" on Windows #2281

jerone opened this issue Feb 2, 2025 · 2 comments
Labels
bug Something isn't working host: windows maestro cli Related to the command-line Maestro tool

Comments

@jerone
Copy link

jerone commented Feb 2, 2025

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

  1. Open PowerShell or Command Prompt on Windows.
  2. Run following command maestro start-device --platform android per documentation.

Actual results

C:\Users\username>maestro start-device --platform android
Cannot run program "uname": CreateProcess error=2, The system cannot find the file specified

The stack trace was:
java.io.IOException: Cannot run program "uname": CreateProcess error=2, The system cannot find the file specified
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
        at maestro.cli.util.EnvUtilsKt.runProcess(EnvUtils.kt:185)
        at maestro.cli.util.EnvUtils.determineArchitectureDetectionStrategy(EnvUtils.kt:125)
        at maestro.cli.util.EnvUtils.getMacOSArchitecture(EnvUtils.kt:121)
        at maestro.cli.device.DeviceCreateUtil.getOrCreateAndroidDevice(DeviceCreateUtil.kt:93)
        at maestro.cli.device.DeviceCreateUtil.getOrCreateDevice(DeviceCreateUtil.kt:16)
        at maestro.cli.device.DeviceCreateUtil.getOrCreateDevice$default(DeviceCreateUtil.kt:8)
        at maestro.cli.command.StartDeviceCommand.call(StartDeviceCommand.kt:98)
        at maestro.cli.command.StartDeviceCommand.call(StartDeviceCommand.kt:23)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at maestro.cli.AppKt.main(App.kt:143)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.base/java.lang.ProcessImpl.create(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:505)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
        ... 19 more

Expected results

Expect an emulator appear...

About environment

Android Studio Ladybug Feature Drop | 2024.2.2
Runtime version: 21.0.4+-12508038-b607.1 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0

Maestro version

1.39.9

How did you install Maestro?

Per Windows instructions.

Copy link

linear bot commented Feb 2, 2025

@Fishbowler
Copy link
Contributor

Reproduced in v1.39.13

@Fishbowler Fishbowler added bug Something isn't working maestro cli Related to the command-line Maestro tool host: windows labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working host: windows maestro cli Related to the command-line Maestro tool
Projects
None yet
Development

No branches or pull requests

2 participants