[BUG] Status spinner not working with webbrowser
See original GitHub issueDescribe the bug
When using rich with the in-build webbrowser package the spinner shows weird symbols. Every second the spinner looks correct, but every other second it looks wrong. Maybe this is caused by the memory/CPU increase when starting the browser windows.
Reproduction code:
import webbrowser
from rich.status import Status
with Status("Opening browser windows"):
for _ in range(5):
webbrowser.open_new_tab("https://google.com")
Expected result:
Actual result:
Platform
Click to expand
Platform: Windows 10 Enterprise, 64 Bit, however, I am using WSL2, so it runs on Ubuntu 20.04 Browser / Default Browser: Microsoft Edge Terminal: Windows Terminal Version: 1.14.2281.0
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If youโre using Rich in a terminal:
python -m rich.diagnose
pip freeze | grep rich
โญโโโโโโโโโโโโโโโโโโโโโโโโโ <class 'rich.console.Console'> โโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ A high level console interface. โ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ <console width=120 ColorSystem.EIGHT_BIT> โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โ โ
โ color_system = '256' โ
โ encoding = 'utf-8' โ
โ file = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> โ
โ height = 30 โ
โ is_alt_screen = False โ
โ is_dumb_terminal = False โ
โ is_interactive = True โ
โ is_jupyter = False โ
โ is_terminal = True โ
โ legacy_windows = False โ
โ no_color = False โ
โ options = ConsoleOptions( โ
โ size=ConsoleDimensions(width=120, height=30), โ
โ legacy_windows=False, โ
โ min_width=1, โ
โ max_width=120, โ
โ is_terminal=True, โ
โ encoding='utf-8', โ
โ max_height=30, โ
โ justify=None, โ
โ overflow=None, โ
โ no_wrap=False, โ
โ highlight=None, โ
โ markup=None, โ
โ height=None โ
โ ) โ
โ quiet = False โ
โ record = False โ
โ safe_box = True โ
โ size = ConsoleDimensions(width=120, height=30) โ
โ soft_wrap = False โ
โ stderr = False โ
โ style = None โ
โ tab_size = 8 โ
โ width = 120 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโ <class 'rich._windows.WindowsConsoleFeatures'> โโโโโฎ
โ Windows features available. โ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ WindowsConsoleFeatures(vt=False, truecolor=False) โ โ
โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โ
โ โ
โ truecolor = False โ
โ vt = False โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโ Environment Variables โโโโโโโโฎ
โ { โ
โ 'TERM': 'xterm-256color', โ
โ 'COLORTERM': None, โ
โ 'CLICOLOR': None, โ
โ 'NO_COLOR': None, โ
โ 'TERM_PROGRAM': None, โ
โ 'COLUMNS': None, โ
โ 'LINES': None, โ
โ 'JUPYTER_COLUMNS': None, โ
โ 'JUPYTER_LINES': None, โ
โ 'JPY_PARENT_PID': None, โ
โ 'VSCODE_VERBOSE_LOGGING': None โ
โ } โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
platform="Linux"
rich==12.5.1
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:10
Top Results From Across the Web
Websites show a spinning wheel and never finish loading
This article explains what to do when specific websites (not all) start to load, but never finish (i.e. the tab displays a spinning...
Read more >Spinner hangs in Google - Midori Web Browser - Launchpad Bugs
Whenever anything is entered in the search bar in google, the loading spinner hangs and the "stop" button doesn't respond. Also the title...
Read more >Spinner shake in embedded WebBrowser in WPF ยท Issue #5952
Developing a desktop application based on React, loading web page in System.Windows.Controls.WebBrowser in WPF. The spinner will shake inย ...
Read more >I see a spinning gear but the page does not load. What do I do?
There are several troubleshooting steps you can try to solve this: Refresh the page.
Read more >New loading spinner issue - Power Platform Community
The app loads and fetches data but shortly after they app starts to launch, a new loading spinner appears. This never allows users...
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 Free
Top 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
Bizarre. We will investigate, but I suspect a bug in Windows Terminal at this point.
Did I solve your problem?
Why not buy the devs a coffee to say thanks?