-
Notifications
You must be signed in to change notification settings - Fork 92
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
blob.py: ResourceWarning unclosed file #270
Comments
"zopefoundation/transaction#82"
is potentially related.
|
The issue is still pending (any annoying)...I still see the error in Plone 6.0.0a4:
|
Potentially, this is not a ZODB problem: I have recently hunted down I assume that application code forgets to call |
At least in my case, there is no add-on code involved that would deal with blobs directly. |
In your situation I would manually add debugging code to see where in the code the warning is originating and what that blob item is. That may help. |
It is quite easy to determine the context which has created an improperly finalized resource: |
Plone 5.2, Python 3.6.
We perform a migration import over plone.restapi.
Each uploaded file results in warning on the console
/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/ZODB-5.5.1-py3.6.egg/ZODB/blob.py:339: ResourceWarning: unclosed file <_io.FileIO name='/tmp/BUCe14dcpak' mode='rb' closefd=True>
super(BlobFile, self).close()
The text was updated successfully, but these errors were encountered: