Cannot install Wave on Windows machine [NotImplementedError]

Hi everyone! :wave:

My very first post - it’s great to be here! :slight_smile:

I’ve an issue installing Wave on my Windows machine

I’ve followed the steps in the guide but I’ve got the following error:

    Welcome to the H2O Wave Interactive Tour!

     Go to http://localhost:10101/tour
    ----------------------------------------
    INFO:     Started server process [14140]
    INFO:     Waiting for application startup.
    INFO:     Application startup complete.
    INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    INFO:     127.0.0.1:52928 - "POST / HTTP/1.1" 200 OK
    INFO:     127.0.0.1:52928 - "POST / HTTP/1.1" 200 OK
    Unhandled exception
    Traceback (most recent call last):
      File "c:\users\charly\desktop\wave\venv\lib\site-packages\h2o_wave\server.py", line 265, in _process       
        await self._handle(q)
      File ".\examples\tour.py", line 193, in serve
        await show_example(q, catalog[route])
      File ".\examples\tour.py", line 162, in show_example
        await active_example.start()
      File ".\examples\tour.py", line 43, in start
        self.process = await asyncio.create_subprocess_exec(
      File "c:\program files\python38\lib\asyncio\subprocess.py", line 236, in create_subprocess_exec
        transport, protocol = await loop.subprocess_exec(
      File "c:\program files\python38\lib\asyncio\base_events.py", line 1615, in subprocess_exec
        transport = await self._make_subprocess_transport(
      File "c:\program files\python38\lib\asyncio\base_events.py", line 487, in _make_subprocess_transport       
        raise NotImplementedError
    NotImplementedError
    Unhandled exception

INFO:     127.0.0.1:52939 - "POST / HTTP/1.1" 200 OK
An open stream object is being garbage collected; call "stream.close()" explicitly.

Any familiar with this issue?

I’ll keep trying and will post the solution here :slight_smile:

Thanks,
Charly

Yes, this a known issue with the tour (tour.py), not Wave itself: https://github.com/h2oai/wave/issues/397

tour.py is a Wave app that launches other Wave apps, and it needs a fix for Windows.

We’ll look into it - thanks for reporting!

2 Likes

Thanks Prithvi! :pray:

Can I still visualise and use the code snippers that are in the tour section? If so, how?

Thanks,
Charly

Yes, you should be able to.

Run python examples\foo.py for scripts.
Run wave run examples.foo (or wave run examples\foo.py) for apps.

Each example is in its own .py file inside the examples directory.

1 Like

Great! That should do for now :slight_smile:

Do you have an ETA for that fix in Windows?

Thanks,
Charly

We have a PR open: https://github.com/h2oai/wave/pull/429. Should be merged in a day or so.

It’ll replace the current examples/tour.py with this file.

1 Like