resource warning
Opened this issue · 1 comments
TemporalClepsydra commented
Describe the bug
I ran the code exactly as the example in the example given, and it did not error but it gave this warning:
ResourceWarning: subprocess 28540 is still running
To Reproduce
Steps to reproduce the behavior:
- Run the given code in a python shell
- enable tracemalloc (
tracemalloc.start()
) before running to get the full warning
code:
from winotify import Notification
toast = Notification(app_id="windows app",
title="Winotify Test Toast",
msg="New Notification!",
icon=r"c:\path\to\icon.png")
toast.show()
Expected behavior
It functioned exactly as expected expect for the warning.
Screenshots
Full warning traceback:
C:\Users\Kinder.DESKTOP-7ADK3IR\AppData\Local\Programs\Python\Python311\Lib\subprocess.py:1125: ResourceWarning: subprocess 28540 is still running
_warn("subprocess %s is still running" % self.pid,
Desktop (please complete the following information):
- Windows 11 Version 10.0.22621 N/A Build 22621
- Windows Powershell Version [e.g. 5.1.22621.1778]
Additional context
Python version:
ton77v commented
I'm getting the same warnings for every notification I send from a function running not on the main thread. When it's from main - it all works fine for me