Open Steinadler177 opened 7 months ago
There's no need to utilize contextlib.closing
for this purpose, it won't add anything extra to the with Subgrounds() as sg
behavior.
Unfortuntely, this SSL socket warning has crept up in a recent update to subgrounds and I haven't fully figured out where it came from. It can safely be ignored and won't affect anything and if the messages get in the way, you can use the warnings
module to ignore them from the output:
import warnings
warnings.filterwarnings('ignore', category=ResourceWarning)
The intended usage should be as follows:
with Subgrounds() as sg:
sg.load_subgraph("<url here>")
data = sg.query_df([...])
You can learn more about query grouping in our docs! Let me know if you have further questions!
Understood. I'll try to import this warn filter for this module. Thank you very much! Please change the issue status on your control.
Is there a method that I can close the SSL connection which is build by Subgrounds? I checked the API document which doesn't have a similar content.
I tried to close it with contextlib, but it also can't solve this problem.
which would give me two error message:
That's the real problem. When the program end, PY just simply terminate everything and trigger this error. I can read data from this, but how to safely close the connection?