plotly / plotly/Kaleido

Error logs while writing a figure in a PNG file in a dev container

Open
#413 1 comment 0 reactions 1 assignee View on GitHub

@emilykl is already working on this.

Since May 8, 2025.

bug P1
Dominant language
Python
Stars
498
Forks
62
Avg merge
1d 11h
Merged PRs (30d)
2

Description

While creating and saving a figure into a PNG file, executed in a pytest function:

import kaleido
import plotly.graph_objects as go

kaleido.get_chrome_sync()

def test_dummy():
    import plotly.graph_objects as go
    # Create a simple Plotly figure
    fig = go.Figure(data=go.Bar(y=[2, 3, 1], x=["A", "B", "C"], name="Example Data"))
    fig.write_image("figure.png")

I see those logs generated, even if the file is sucessfully created:

DEBUG    root:_which.py:60 Looking for browser, skipping local? False
DEBUG    root:_which.py:67 Local download path: /workspaces/mlc/WORKSPACE/data/.venv/lib/python3.12/site-packages/choreographer/cli/browser_exe/chrome-linux64/chrome
DEBUG    root:_which.py:73 Returning local chrome
DEBUG    browser_proc::244 wrapper CLI: ['/workspaces/mlc/WORKSPACE/data/.venv/lib/python3.12/site-packages/choreographer/cli/browser_exe/chrome-linux64/chrome', '--disable-gpu', '--headless', '--no-sandbox', '--disable-breakpad', '--allow-file-access-from-files', '--enable-logging=stderr', '--user-data-dir=/tmp/tmpdlh7y43d', '--no-first-run', '--enable-unsafe-swiftshader', '--disable-dev-shm-usage', '--disable-background-media-suspend', '--disable-lazy-loading', '--disable-background-timer-throttling', '--disable-backgrounding-occluded-windows', '--disable-renderer-backgrounding', '--disable-component-update', '--disable-hang-monitor', '--disable-popup-blocking', '--disable-prompt-on-repost', '--disable-ipc-flooding-protection', '--disable-sync', '--metrics-recording-only', '--password-store=basic', '--use-mock-keychain', '--no-default-browser-check', '--no-process-per-site', '--disable-web-security', '--remote-debugging-pipe']
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:global_accelerator_listener_linux.cc(350)] Failed to connect to signal: org.freedesktop.portal.GlobalShortcuts.Activated
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
DEBUG    browser_proc::244 [ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
DEBUG    browser_proc::244 [WARNING:idle_linux.cc(110)] None of the known D-Bus ScreenSaver services could be used.
DEBUG    browser_proc::244 [WARNING:sandbox_linux.cc(415)] InitializeSandbox() called with multiple threads in process gpu-process.
DEBUG    browser_proc::244 [WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
DEBUG    browser_proc::244 [ERROR:devtools_pipe_handler.cc(188)] Connection terminated while reading from pipe
DEBUG    browser_proc::244 [ERROR:devtools_pipe_handler.cc(273)] Could not write into pipe
DEBUG    browser_proc::244 [ERROR:devtools_pipe_handler.cc(273)] Could not write into pipe
DEBUG    browser_proc::244 [WARNING:sqlite_persistent_store_backend_base.cc(198)] Failed to post task from FlushAndNotifyInBackground@net/extras/sqlite/sqlite_persistent_store_backend_base.cc:248 to client_task_runner_.
DEBUG    browser_proc::244 [WARNING:sqlite_persistent_store_backend_base.cc(198)] Failed to post task from FlushAndNotifyInBackground@net/extras/sqlite/sqlite_persistent_store_backend_base.cc:248 to client_task_runner_.
DEBUG    browser_proc::244 Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
DEBUG    browser_proc::244 BrokenPipeError: [Errno 32] Broken pipe

I am using a dev container with:

"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye"

I am using the latest plotly and kaleido branch (6.1.0 & 1.0.0).

Thanks !

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.