pi-guy-in-the-sky opened a new issue #10923:
URL: https://github.com/apache/arrow/issues/10923


   Hello, apologies in advance for the specific question.
   
   A brief overview: I have some C++ code which creates an `arrow::Table`. I 
want to access this table in Python. I've been attempting to do so using 
Boost.Python, but it segfaults when I actually try to access the data.
   
   I've included a minimum reproducible example using Docker in [this 
gist](https://gist.github.com/pi-guy-in-the-sky/eb7793445c50257d105167828466d529).
 It builds and installs a shared library named `hello`. Python has no problem 
`import`ing the library, calling `hello.create_table()`, and even correctly 
getting the shape of the resulting table, but when I try to do anything with 
the table e.g. `table.to_string()`, it segfaults. I included the stack trace 
from Valgrind in the gist.
   
   Am I even approaching this from the right direction? I don't have any 
experience with Cython but if all else fails I'd be willing to learn it to get 
the project to work. Any directions would be much appreciated.
   
   Thanks in advance for your time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to