plotly / plotly/Kaleido

UNKNOWN watchdog error

Open
#296 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

@mmarras wrote

Is this related?

with (plots / "test.png").open("w", encoding="utf-8") as f:
f.write(
fig.to_image(format="png", scale=5)
)

Task exception was never retrieved
future: <Task finished name='Task-8' coro=<Browser._watchdog() done, defined at c:\Users\XXX(NL)\AppData\Local\miniconda3\envs\datamore\lib\site-packages\choreographer\browser.py:227> exception=TypeError("object int can't be used in 'await' expression")>
Traceback (most recent call last):
File "c:\Users\XXX(NL)\AppData\Local\miniconda3\envs\datamore\lib\site-packages\choreographer\browser.py", line 230, in _watchdog
await self.subprocess.wait()
TypeError: object int can't be used in 'await' expression

@mmarras, my response:

No, this looks a little more concerning. Could you make a new issue, and preferably, before you run the code with this error, please set:

import logging
logging.getLogger().setLevel(1)

So that I see all output?

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.

Research direction

Start with choreographer/browser.py around Browser._watchdog at line 227 and reproduce the reported TypeError with root logging set to level 1. Review the resulting output and determine why subprocess.wait() returns an int in this environment. Done means the watchdog no longer reports the UNKNOWN error during the provided image-export scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.