[Core] [Bug] local_mode=True causes unexpected print statements of format :task_name:<function_name>:
See original GitHub issueSearch before asking
- I searched the issues and found no similar issues.
Ray Component
Ray Core, Monitoring & Debugging
What happened + What you expected to happen
In local_mode, working with modin.pandas.DataFrame
s will result in unexpected statements to stdout/stderr.
These statements look like this:
:task_name:deploy_ray_func
:task_name:apply_func
The expected behavior is, that they shouldn’t show up.
This only happens in local_mode and only since ray version 1.7.0. In version 1.6.0, this undesired behavior wasn’t there. And it still exists in 1.9.1, the latest version of ray.
Versions / Dependencies
Linux 5.11.0-43-generic python 3.8.10 pip packages:
- modin==0.12.0
- ray==1.7.0 or higher
Reproduction script
import logging import modin.pandas as pd import ray
ray.init(local_mode=True, logging_level=logging.CRITICAL)
df = pd.DataFrame({“a”: [1, 2, 3, 4, 5], “b”: [1, 2, 1, 1, 2]}) df[df.duplicated([“b”])]
Anything else
This happens everywhere, where modin dataframes are changed but only in local_mode.
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
not all arguments converted during string formatting python
For me, This error was caused when I was attempting to pass in a tuple into the string format method. I found the...
Read more >Stop Using “Print” and Start Using “Logging” | by Naser Tamimi
The print() statement fails if your code does not have access to the console. ... ERROR:root:Something unexpected and important happened.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The print statements were added in #18105. There is a comment there by @ericl that the output does not show up on the console. But even when using
local_mode=False
I get output to the terminal. I wonder what changed?Observed the same issue. Initializing ray with
local_mode=True
fills our logs with thousands of those printed statements regardless of logging level.It looks like the logging could be coming from here in
_raylet.pyx
?https://github.com/ray-project/ray/blob/149d06442bd0e53010ead72e4a7c0620ee1c0966/python/ray/_raylet.pyx#L542 https://github.com/ray-project/ray/blob/149d06442bd0e53010ead72e4a7c0620ee1c0966/python/ray/_raylet.pyx#L573 https://github.com/ray-project/ray/blob/149d06442bd0e53010ead72e4a7c0620ee1c0966/python/ray/_raylet.pyx#L712