Skip to content

emrun always exits (Windows) #10486

@aardappel

Description

@aardappel

On Windows, running emrun --browser chrome mywasm.html --verbose quits immediately after launching the page, so is presumably not running the local webserver, and not surprisingly the page shows Failed to load resource: net::ERR_CONNECTION_REFUSED errors in the console. No errors on the command line.

Tried to force it to not quit by adding --serve_after_close, which did not change anything.

Probably not related, but still odd, if instead of the above command line I run just emrun mywasm.html, I get:

No module named 'win32api'
Importing Python win32 modules failed! This most likely occurs if you do not have PyWin32 installed! Get it from https://github.com/mhammond/pywin32/releases
Traceback (most recent call last):
  File "C:\stuff\emsdk\upstream\emscripten\emrun.py", line 1767, in <module>
    sys.exit(main())
  File "C:\stuff\emsdk\upstream\emscripten\emrun.py", line 1759, in main
    returncode = run()
  File "C:\stuff\emsdk\upstream\emscripten\emrun.py", line 1614, in run
    browser = find_browser(str(options.browser))
  File "C:\stuff\emsdk\upstream\emscripten\emrun.py", line 1130, in find_browser
    return win_get_default_browser()
  File "C:\stuff\emsdk\upstream\emscripten\emrun.py", line 1110, in win_get_default_browser
    import_win32api_modules()
  File "C:\stuff\emsdk\upstream\emscripten\emrun.py", line 116, in import_win32api_modules
    import win32api
ModuleNotFoundError: No module named 'win32api'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions