Running demo on Windows
See original GitHub issueHello! I found that if you run the demo using this line
cd kuwala/scripts && sh initialize_core_components.sh && sh run_cli.sh
On docker desktop for Windows, it founds an error:
sh: 0: Can't open build_neo4j.sh
sh: 0: Can't open build_cli.sh
build_jupyter_notebook.sh: 1: cd: can't cd to ..
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
PermissionError: [Errno 13] Permission denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 727, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker/api/client.py", line 214, in _retrieve_server_version
File "docker/api/daemon.py", line 181, in version
File "docker/utils/decorators.py", line 46, in inner
File "docker/api/client.py", line 237, in _get
File "requests/sessions.py", line 543, in get
File "requests/sessions.py", line 530, in request
File "requests/sessions.py", line 643, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 200, in perform_command
File "compose/cli/command.py", line 70, in project_from_options
File "compose/cli/command.py", line 153, in get_project
File "compose/cli/docker_client.py", line 43, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in __init__
File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
[7178] Failed to execute script docker-compose
I assume that the bash script is not fully compatible with Windows filesystem… Any idea for this?
Thank you ^^
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Demo like a Pro from Windows - Microsoft Tech Community
1. Preparing your Windows demo environment · 2. Demoing from a browser, whether it's Microsoft Edge or Google Chrome · 3. Seamless multi-part...
Read more >The Ultimate Guide for Demoing Like a Pro from Windows
Want to take your Windows demos or presentations to the next level? This is a tutorial with tips and tricks to improve the...
Read more >Turn On or Off Retail Demo Experience Mode in Windows 10
To Turn On Retail Demo Experience Mode in Windows 10 · 1 Open Settings, and click/tap on the Update & Security icon. ·...
Read more >Run demo with Sygic 3D | Professional Navigation for Fleets
Run demo with Sygic 3D · Step 1 : Download package · Step 2 : Install Sygic navigation · Step 3 : Build...
Read more >Delete or Enable Retail Demo mode in Windows 11/10
To view the Retail Demo experience, open Windows 10 Settings app > Update & Security > Activation. Now click on “Windows” 5 times,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After discussing with @IritaSee, we found that the
initialize_windows.sh
script is not reproducible for all systems and still depends a lot on the local Windows setup. Therefore we decide to switch to a new approach to get Kuwala running on all the systems.Instead of having
.sh
scripts, we will replace each of them with a Python script. Each Python script itself will have a main method and execute all the commands that are currently in the.sh
scripts by using Python’ssubprocess
module.For example, you can execute a command in a shell environment using this syntax:
To change the working directory, you can use
os.chdir()
. Remember to always reeset the working directory at the start of each method. To get the path to the file the method is called from, usescript_dir = os.path.dirname(__file__)
.The demo is not running on Windows out of the box. The existing command
cd kuwala/scripts && sh initialize_core_components.sh && sh run_cli.sh
was designed for Mac/Linux.The prerequisites stay the same. People have to have Python3 (along with pip) installed, have downloaded Docker Desktop and launched it in the background.
The necessary adjustments to get it running on Windows are:
sh
since that is not supported on Windows.requirements.txt
of the CLI might have Windows-specific issues.