Im using the example from The Python zrok SDK and works well until it tries to close the connection with
zrok.share.DeleteShare(root=root, shr=shr)
I get always the same error:
zrok.share.DeleteShare(root=root, shr=shr)
File "/Users/diego/PycharmProjects/zroktest/.venv/lib/python3.12/site-packages/zrok/share.py", line 101, in DeleteShare
raise Exception("error getting zrok client", e)
Exception: ('error getting zrok client', RuntimeError("can't create new thread at interpreter shutdown"))
Exception ignored in: <function ApiClient.del at 0x1063af560>
Traceback (most recent call last):
File "/Users/diego/PycharmProjects/zroktest/.venv/lib/python3.12/site-packages/zrok_api/api_client.py", line 78, in del
self.pool.close()
^^^^^^^^^
AttributeError: 'ApiClient' object has no attribute 'pool'
The problem is that after using the script several times, I get several connections that never close.
Any advice?