Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@geoffrey-g-delhomme

Description

@geoffrey-g-delhomme
Issue body actions

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 !

Metadata

Metadata

Assignees

Labels

P1needed for current cycleneeded for current cyclebugsomething brokensomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.