Comments (12)
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.
from flutter.
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 ?
from flutter.
print without parentheses is Python 2 syntax, try with 2.7.
Shouldn't new projects support Python 3?
from flutter.
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 !
from flutter.
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?
from flutter.
Yes, I can. I try to update the documentation as soon as possible.
from flutter.
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])
from flutter.
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. :/
from flutter.
Ok my mistake because I haven't found 'reverse' option on my adb. I updated it and get reverse option now.
Thanks
from flutter.
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.
from flutter.
Closing as a duplicate of #138 - please reopen if I misunderstood what this was about.
from flutter.
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.
from flutter.
Related Issues (20)
- Draggable doesn't show dragging on Web HOT 1
- Proposal: add more details to message shown when the tool exits because it's unable to run adb
- [video player] weird behaviour when the download speed is low HOT 1
- [web] on Safari for macOS using VoiceOver it is easy to make text field non-editable
- The video player fails to play videos after playing successfully 8-10 times
- False positive `avoid_print` warning after `if (!kDebugMode) { return; }`
- Failed assertion: line 2283 pos 14: '_debugSubtreeRelayoutRootAlreadyMarkedNeedsLayout()': is not true
- [local_auth] [android] Non-biometrics authentication gives NotAvailable on Android 10 HOT 1
- [pigeon] Unable to generate code When a class field contains List<SelfClass?>
- Flutter 3.16.9, detect Trojan by virustotal
- FormatException: Message corrupted in StandardMessageCodec.readValue during state restoration
- Flutter application won't run
- `SystemChrome.setPreferredOrientations` landscape right or left doesn't work in some conditions
- "std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::Rasterizer... 1031 (atomic:1031)" crashes in iOS Flutter 3.16
- Add getter for Form's _hasInteractedByUser HOT 1
- Hi @rohaitas, Thanks for filing the issue. Is it happening with any specific video or all videos, I tried turning off the network, But I didn't see any issue, it continues playing the buffer. HOT 3
- [go_router] canPop() throws "BadState: No element" on error pages (and maybe other pages)
- [Feature request] Choose flutter app as windows default app
- [tool_crash] FileSystemException: Cannot open file, OS Error: No such file or directory, errno = 2
- [arch-linux] /usr/lib/flutter/packages/flutter_tools/templates/template_manifest.json no such file or directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.