Closed levongh closed 1 year ago
Currently you can only call InitAPI
and ShutdownAPI
once per application. If you want to use pyarrow you would need to make sure that InitAPI
and ShutdownAPI
are only called once. I'm not super familiar with that library, but you would need to control the init of the aws-sdk-cpp yourself and have pyarrow not initialize this sdk. That is something you you can try to do right now.
Ideally this sdk would have a reference counter that would handle situations like what you are trying to do above. I will be switching this bug to a feature request. This is not something that we currently have planned, but it is something that we would like to do. I will make sure that we update this ticket with any progress.
We have a feature request already open for this same issue. Closing this one https://github.com/aws/aws-sdk-cpp/issues/2411
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I do have a python binding library which is setting up an aws sdk during library init. And in the other hand in my python script, I am also using pyarrow library which crashes with the following stack trace.
Expected Behavior
The expected behavior is to run and keep two independent libraries to work together without contradicting each other's state.
Current Behavior
it crashes
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.10.55
Compiler and Version used
clang 13
Operating System and version
OSX