turbodbc icon indicating copy to clipboard operation
turbodbc copied to clipboard

How to use arrow support with pip?

Open jorgecarleitao opened this issue 3 years ago • 2 comments

On Ubuntu 20, I am unable to install turbodbc with arrow support.

What I tried:

python3 --version  # Python 3.8.10
python3 -m venv venv
source venv/bin/activate
pip install -U pip
pip install turbodbc[arrow] --no-cache-dir # Successfully installed numpy-1.22.2 pyarrow-7.0.0 turbodbc-4.5.3

python -c "import turbodbc_arrow_support" # ModuleNotFoundError: No module named 'turbodbc_arrow_support'

Trying to use a cursor with a pyarrow Table fails with

turbodbc.exceptions.Error: This installation of turbodbc does not support Apache Arrow extensions. Please install the pyarrow package. If you have built turbodbc from source, you may also need to reinstall turbodbc to compile the extensions.

Any ideas on what am I missing here?

jorgecarleitao avatar Mar 05 '22 19:03 jorgecarleitao

@jorgecarleitao Check out my comment on my issue I recently closed. It's based on Docker with Ubuntu 20.04, hope it helps!

david-engelmann avatar May 13 '22 01:05 david-engelmann

Confirming that this solution worked for me as well.

ldacey avatar May 25 '22 16:05 ldacey

With release 4.5.9, this should also be much better. Closing for now.

xhochy avatar Feb 21 '23 18:02 xhochy