Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] rich markdown causes console freeze when rendering on Windows OS #3174

Closed
snooppr opened this issue Oct 29, 2023 · 3 comments
Closed

Comments

@snooppr
Copy link

snooppr commented Oct 29, 2023

The code below works well on Android/GNU/Linux OS.
But on OS Windows 7/32bit (vurtual box), the cmd console freezes and causes the sound to beep in the speakers. I tried the same code on Windows 7/64bit cmd does not freeze, but the powershell console freezes.

Reproducing the problem:
1.program.py

import requests
from rich.markdown import Markdown
from rich.console import Console

console = Console()

r = requests.get("https://raw.githubusercontent.com/snooppr/snoop/master/changelog.txt").text

console.print(Markdown(r.replace("=" * 83, "")))
  1. Run the code in Powershell
    python C:\Users\User\Desktop\program.py

The code will be executed, but at the end the console will hang and sound will beep from the speaker.

OS Windows 7 64bit
Python 3.8
rich 13.0.1 and rich 13.6.0

@github-actions
Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

@snooppr snooppr closed this as completed Nov 12, 2023
Copy link

I hope we solved your problem.

If you like using Rich, you might also enjoy Textual

@snooppr
Copy link
Author

snooppr commented Nov 12, 2023

No, you haven't solved the problem.

timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant