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
Unclosed event loop with easing example #127
Comments
Interesting. I don't see that, probably because I develop with 3.7. Shutting down cleanly is one of the hardest things about asyncio. |
I tested 3.7 and am seeing the error there also. I tried it out on my Mac, and there it seems to be random. Sometimes I get the error and sometimes I don't with 3.7, 3.8, and 3.9. |
Are you certain you are running the latest code? What does It has very possibly reoccured, but I had fixed a very similar issue a while back. |
I'm running from my fork. I tried pull upstream and then a fresh |
Try uninstalling textual first, but I would have thought that would be enough. So you are seeing this on Linux consistently, but MacOS intermittently? |
I tried deleting poetry's virtual environment and re-creating it, but no difference. Correct, I am getting the error every time on Linux, but only intermittently on MacOS. I'll keep doing some testing to see if I can get any more information. |
Not that I know what I'm talking about but there was a good talk at EuroPython a few years ago that talked about asyncio things, including shutting down gracefully. |
i get the same error when trying to get docker container status. along the dumped data i can see the widgets rendered.
class Container(Widget):
mouse_over = Reactive(False)
def __init__(self, id: str = None):
super().__init__(id=id)
self.id = id
def container(self):
try:
client = docker.from_env()
container = client.containers.get(self.id)
status = container.status()
client.close()
return status
except Exception as e:
return "Error"
def on_mount(self):
self.set_interval(1, self.refresh)
def render(self):
data = self.container()
return Panel(data, style=("on red" if self.mouse_over else "")) |
@drbenton There is an open PR above for this ^ Although I thought this wasn't an issue on the |
Status update: the bug seems to be fixed on the |
Did we solve your problem? Consider buying the Textualize developers a coffee to say thanks. |
Every time I close the easing example. I get the following error:
I am thinking there are still messages processing at shutdown that are keeping the loop running, but I have not been able to track down the root cause yet.
Possibly a similar issue to #82?
OS: Manjaro Linux 21.1.4
The text was updated successfully, but these errors were encountered: