Closed
Description
This issue was met by me while using simple progress bar from a script runnning under PyPy 3.11. It worked just fine using CPython 3.10-3.13, but somehow triggers this error from the PyPy.
Also, it happened to other projects, after quick search, but it doesn't look directly related to using PyPy:
- rich.errors.LiveError: Only one live display may be active at once semgrep/semgrep#10562
- [Bug]: Rich LiveError - Only one live display may be active at once DLR-RM/stable-baselines3#1645
- rich.errors.LiveError: Only one live display may be active at once freqtrade/freqtrade#8959
/home/user/.local/lib/pypy3.11/site-packages/some.py:212: in init_analysis
self.progress.start()
/home/user/.local/lib/pypy3.11/site-packages/rich/progress.py:1173: in start
self.live.start(refresh=True)
/home/user/.local/lib/pypy3.11/site-packages/rich/live.py:113: in start
self.console.set_live(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <console width=80 None>
live = <rich.live.Live object at 0x000000000c71a1e0>
def set_live(self, live: "Live") -> None:
"""Set Live instance. Used by Live context manager.
Args:
live (Live): Live instance using this Console.
Raises:
errors.LiveError: If this Console has a Live context currently active.
"""
with self._lock:
if self._live is not None:
> raise errors.LiveError("Only one live display may be active at once")
E rich.errors.LiveError: Only one live display may be active at once
/home/user/.local/lib/pypy3.11/site-packages/rich/console.py:835: LiveError
Metadata
Metadata
Assignees
Labels
No labels