-
Notifications
You must be signed in to change notification settings - Fork 17
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
Python 3 webserver not working on Windows 10 #2
Comments
Hi, thanks for reporting this. I cannot reproduce this on my machine. Can you try removing the "| Out-Null" from this line and seeing if any error appears? ios-safari-remote-debug-kit/src/start.ps1 Line 48 in 9e1a0e8
|
Hi, thanks for your reply. If I remove the line it throws an error specfying that python3.exe was not found. Effectively I can run python with "python" from command line, but not by using "python3", but if I type "python --version" it shows "Python 3.10" which is the version I have. After installing python from Windows Store (which opened after typing python3.exe in powershell) everything worked. |
Ah, I'm guessing the issue is that even if python is not installed, windows aliases python.exe to the microsoft store link. I'll see if I can find a workaround. |
I had this issue and got it working. To do this I had to: For me, I use a python.exe on my environment path instead of a python3.exe. I updated the start.ps1 to just use python.exe instead of python3.exe ie:
It's worth checking your firewall with the python httpserver by just running a basic web server in any directory and making sure it runs using the python on your environment path. Since i've got other stuff running in docker on 8080 I changed it to 8081 and updated the $PORT in my start.ps1 accordingly. If running according the instructions and you still see nothing, it's worth checking the page list by going to Improvements to the script could potentially check what happens if you execute the returned source path on Get-Command "python3.exe" and it's not able to invoke a python shell then spit out a message saying. It might also be worth checking python.exe as a fall back in addition to python3.exe |
I wish I could just bundle a small webserver executable so you don't need any dependencies, but all the ones I found trigger various antivirus tools |
@Hans-Zamorano-Matamala @JWess @neil-hucker-seequent Fixed in 77620eb |
Since there have been no comments I will assume this is fixed now. Feel free to reopen |
Hi, when trying to run start.ps1 and then opening the suggested URL Chrome indicates that the website is not online, this also happen when trying to open localhost:8080. After modifying start.ps1 to not look for Python (line 46) it works perfectly by using the NodeJS one.
Environment: Windows 10 with Python 3 and NodeJS v17.2.0
Used for: iPhone 7 with iOS 15.4
Hope this info is useful.
The text was updated successfully, but these errors were encountered: