bottle
bottle copied to clipboard
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Hi there,
Do you know what could be the reason for this message:
D:\bottle.py:2269: ResourceWarning: unclosed file <_io.BufferedReader name='D:\\test.webm'>
func()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
wsgiref\handlers.py:183: ResourceWarning: unclosed file <_io.BufferedReader name='D:\\test.webm'>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
when I serve a HTML page containing
?
The video is loading successfully, but I'd like to remove this warning message if possible.
Thanks!
All the best
Have you tried enable memory tracing through tracemalloc as proposed in the warning message? Could you provide some minimal example code reproducing this issue?