Skip to content

Napari viewier fails on native windows installation #52

@popjell

Description

@popjell

When trying to open the Napari image viewer in a native windows installation of openhcs, the napari viewier opens but no images are streamed to it. The following error is thrown:

Traceback (most recent call last):
  File "C:\Users\jatha\Desktop\openHCSTest\Lib\site-packages\openhcs\io\filemanager.py", line 199, in save_batch
    backend_instance.save_batch(data_list, output_paths, **kwargs)
  File "C:\Users\jatha\Desktop\openHCSTest\Lib\site-packages\openhcs\io\napari_stream.py", line 78, in save_batch
    publisher = self._get_publisher(host, port, transport_mode)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jatha\Desktop\openHCSTest\Lib\site-packages\openhcs\io\streaming.py", line 70, in _get_publisher
    url = get_zmq_transport_url(port, transport_mode, host)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jatha\Desktop\openHCSTest\Lib\site-packages\openhcs\runtime\zmq_base.py", line 114, in get_zmq_transport_url
    raise ValueError(
ValueError: IPC transport mode is not supported on Windows. Windows does not support Unix domain sockets. Use TransportMode.TCP instead, or use get_default_transport_mode() to automatically select the correct mode for the platform.
2025-11-19 22:30:21,602 - openhcs.pyqt_gui.widgets.image_browser - ERROR - Failed to load/stream batch to Napari: Failed to save batch of 1 files using backend 'napari_stream'

In "openhcs\io\napari_stream.py", transport_mode to be swapped to use the get_default_transport_mode() function rather than hard coding TCP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions