Skip to content

Tools should support Windows hosts #16

Description

@ssaurel

Hello,

I follow the installation steps to use stocks examples which is in examples/stocks folder.

There, I executed pub get command and it was ok. Then, I tried to launch the sky_tool like said in the steps by steps instructions.

On examples/stocks folder :

C:\Users\sylsau\MyDocuments\Android\dart\sky_sdk\examples\stocks>.\packages\sky\sky_tool start --install '.\packages\sky\sky_tool' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

Sorry, message is in french but problem is that sky_tool is not known as an executable. Is it normal ? sky_tool is not supported on Windows 8 ?

Thanks for your help.

Sylvain

Activity

  1. abarth commented on May 7, 2015

    @abarth
    Contributor

    The underlying problem is that we haven't tested on Windows. Can you try the following command:

    python .\packages\sky\sky_tool start --install '.\packages\sky\sky_tool'

    Another thing to try would be using cygwin or another unix-like shell on Windows.

  2. ssaurel commented on May 9, 2015

    @ssaurel
    Author

    I tried the following command :

    C:\Users\sylsau\MyDocuments\Android\dart\sky_sdk\examples\stocks>python.exe .\packages\sky\sky_tool start --install '.\packages\sky\sky_tool'
    File ".\packages\sky\sky_tool", line 131
    print '%s is not installed, installing.' % APK_NAME
    ^
    SyntaxError: Missing parentheses in call to 'print'

    I use Python 3.4.3. Another Python version is supported ?

  3. Pajn commented on May 9, 2015

    @Pajn

    print without parentheses is Python 2 syntax, try with 2.7.

    Shouldn't new projects support Python 3?

  4. ssaurel commented on May 10, 2015

    @ssaurel
    Author

    So, I installed Python 2.7. It would be good to mention on steps by steps documentation that Python 2.7 is mandatory.

    I executed the command :

    C:\Users\sylsau\MyDocuments\Android\dart\sky_sdk\examples\stocks>python .\packages\sky\sky_tool start --install SkyDemo.apk is not installed, installing. 'C:\Users\sylsau\MyDocuments\Android\dart\sky_sdk\examples\stocks\packages\apks\SkyDemo.apk' does not exist? WARNING:root:Failed to write pid file: /tmp/sky_tool.pids

    So, I copied packages\sky\apks\SkyDemo.apk to examples\stocks\packages\apks\SkyDemo.apk .

    Then, I executed the command and now it works !

  5. abarth commented on May 10, 2015

    @abarth
    Contributor

    Yay! I'm glad it worked. Would you be willing to send a pull request improving the documentation to explain how to get it working on Windows?

  6. ssaurel commented on May 10, 2015

    @ssaurel
    Author

    Yes, I can. I try to update the documentation as soon as possible.

  7. adirkuhn commented on May 11, 2015

    @adirkuhn

    to run on windows 8 i need made this changes
    line 28
    PID_FILE_PATH = "/tmp/sky_tool.pids" to PID_FILE_PATH = "c:/tmp/sky_tool.pids"

    line 169
    ADB_PATH, 'reverse', port_string, port_string
    to
    ADB_PATH, 'forward', port_string, port_string

    line 205
    subprocess.call([ADB_PATH, 'reverse', '--remove', port_string])
    to
    subprocess.call([ADB_PATH, 'forward', '--remove', port_string])

  8. eseidelGoogle commented on May 12, 2015

    @eseidelGoogle
    Contributor

    We should fix PID_FILE_PATH to use tempfile.gettempdir().

    ADB reverse and forward are not the same thing. :) We require a very recent adb which has the reverse command. Did the old adb forward command used to do what reverse does now? If so, that's confusing. :/

  9. adirkuhn commented on May 13, 2015

    @adirkuhn

    Ok my mistake because I haven't found 'reverse' option on my adb. I updated it and get reverse option now.
    Thanks

  10. changed the title [-]sky_tool don't work on Windows 8 ?[/-] [+]Tools should support Windows hosts[/+] on Nov 7, 2015
  11. TheBosZ commented on Nov 11, 2015

    @TheBosZ
    Contributor

    I wrote a batch file to take care of the "flutter" command: #297
    Also, the python script to update packages has been converted to Dart.

  12. Hixie commented on Dec 12, 2015

    @Hixie
    Contributor

    Closing as a duplicate of #138 - please reopen if I misunderstood what this was about.

  13. github-actions commented on Sep 6, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  14. locked as resolved and limited conversation to collaborators on Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions