Hi,

i’m writing this email as i thought it might be more frequently checked than 
the slack channel as i initially posted my problem there:
i’m trying to use `arrow::py::unwrap_table` in a c++ library that would use 
pyarrow tables…. unfortunately when i try to load the generated python module 
(shared lib) in the python interpreter, i’m getting a `Symbol not found: 
_unwrap_table` exception…. i thought the problem was that i havent linked the 
library with `libarrow_python.dylib`, but even after linking with that lib i’m 
still getting the same error… anybody has any ideas why there’s `Symbol not 
found` error?

note that when i compile my shared library i’m getting the following warning:
warning: 'unwrap_table' has C-linkage specified, but returns user-defined type 
'arrow::Status' which is incompatible with C [-Wreturn-type-c-linkage]
ARROW_EXPORT Status unwrap_table(PyObject* table, std::shared_ptr<Table>* out);

the main idea is that i would pass the pyarrow table to my lightweight python 
library that is basically a wrapper around a c++ library. In that wrapper i 
would unwrap the pyarrow Table to a simple std::shared_ptr<arrow::Table> which 
i would pass to the c++ library, as it can handle standard arrow data 
structures.

cheers,
viktor

Reply via email to