Skip to content

nextstrain view automatic opening of browser does not work on Windows #435

Open

Description

@victorlin

This was brought up by a user at office hours. Here is the relevant output after running nextstrain view (computer-specific details cropped out):

Image

There is an error in the middle:

Traceback (most recent call last):
  File "multiprocessing.spawn", line 107, in spawn_main
  File "multiprocessing.reduction", line 79, in duplicate
TypeError: DuplicateHandle() argument 2 must be int, not dict

There is an upstream issue, but it's likely that it won't be fixed any time soon since PyOxidizer is unmaintained.

Separately, we may want to consider not letting nextstrain view continue to run after this sort of error.

Note: no office hours hosts have tried to reproduce this yet, since we don't actively use Windows machines.

Activity

  1. added
    bug
    source: office hours
    on May 1, 2025
  2. tsibley commented on May 6, 2025

    @tsibley
    Contributor

    Bah. We can probably work around this one way or another.

    For doing Windows-focused development/testing of Nextstrain CLI in the past, I've used both a Windows VM and the ThinkPad with Windows on it in lab.

  3. tsibley commented on May 6, 2025

    @tsibley
    Contributor

    since we don't actively use Windows machines.

    This fact will mean that Windows support will always be a bit hit-or-miss and shoddy, unfortunately. :/

  4. tsibley commented on May 6, 2025

    @tsibley
    Contributor

    I believe only the automatic opening of a web browser is broken here, based on the code and screenshot above. Note that Auspice appears to be running in the screenshot, and this is supported by the logic flow in the code. The TypeError in the screenshot appears to be coming from the browser-opening process, i.e. its already a separate process and multiprocessing is setting things up (and failing).

    If the user hit http://127.0.0.1:4000/zika even after seeing this error, I believe they'd see the expected dataset. And I believe passing --no-open would suppress the error.

  5. joverlee521 commented on May 6, 2025

    @joverlee521
    Contributor

    Ah, the TypeError is probably a red herring then. The user could not see their dataset at https://127.0.0.1:4000/zika so we were trying to figure out why...

  6. tsibley commented on May 6, 2025

    @tsibley
    Contributor

    This is the Docker runtime, it looks like. So probably a port forwarding issue then?

  7. tsibley commented on May 7, 2025

    @tsibley
    Contributor

    I can repro the TypeError from multiprocessing, but I can't repo http://127.0.0.1:4000/zika (note http not https) being inaccessible.

  8. joverlee521 commented on May 14, 2025

    @joverlee521
    Contributor

    Looks like they resolved the port forwarding issue by uninstalling and reinstalling, but the automatic opening of the web browser is still broken.

  9. changed the title [-]`nextstrain view` not usable on Windows[/-] [+]`nextstrain view` automatic opening of browser does not work on Windows[/+] on May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsource: office hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions