Michael-J-Ward commented on issue #830:
URL:
https://github.com/apache/datafusion-python/issues/830#issuecomment-2303621519
So, I don't have a Windows machine but I did encounter a ~similar~ linux
error when my environment couldn't load a shared C++ library that `pyarrow`
needed (see bottom).
* Could you provide the output for `checking pyarrow` and `installing` as I
have below?
* Is this the same machine / environment that you previously used with
version 36.0.0?
---
## Successful install and import
**Checking pyarrow**
```
❯ python
Python 3.12.4 (main, Jun 6 2024, 18:26:44) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
>>> pyarrow.__version__
'17.0.0'
```
**Installing**
```console
❯ pip install datafusion -U
Collecting datafusion
Using cached
datafusion-40.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
(10 kB)
Requirement already satisfied: pyarrow>=11.0.0 in
/nix/store/3zsajax8hkvl1yc9fygpjn702m2qwh7m-python3.12-pyarrow-17.0.0/lib/python3.12/site-packages
(from datafusion) (17.0.0)
Collecting typing-extensions (from datafusion)
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Requirement already satisfied: numpy>=1.16.6 in
/nix/store/5qnnxrlcfiiv9b84cj1n02gnfq2hbsp4-python3.12-numpy-1.26.4/lib/python3.12/site-packages
(from pyarrow>=11.0.0->datafusion) (1.26.4)
Using cached
datafusion-40.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
(18.5 MB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Installing collected packages: typing-extensions, datafusion
Successfully installed datafusion-40.1.0 typing-extensions-4.12.2
```
**Running**
```console
❯ python
Python 3.12.4 (main, Jun 6 2024, 18:26:44) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datafusion import SessionContext
>>> ctx = SessionContext()
```
---
**Failed because my dev-env wasn't setup properly**
```console
❯ python
Python 3.12.4 (main, Jun 6 2024, 18:26:44) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datafusion import SessionContext
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/mike/workspace/rust-python-coverage/.venv/lib/python3.12/site-packages/datafusion/__init__.py",
line 29, in <module>
from .context import (
File
"/home/mike/workspace/rust-python-coverage/.venv/lib/python3.12/site-packages/datafusion/context.py",
line 30, in <module>
from datafusion.dataframe import DataFrame
File
"/home/mike/workspace/rust-python-coverage/.venv/lib/python3.12/site-packages/datafusion/dataframe.py",
line 35, in <module>
from datafusion.expr import Expr
File
"/home/mike/workspace/rust-python-coverage/.venv/lib/python3.12/site-packages/datafusion/expr.py",
line 28, in <module>
import pyarrow as pa
File
"/home/mike/workspace/rust-python-coverage/.venv/lib/python3.12/site-packages/pyarrow/__init__.py",
line 65, in <module>
import pyarrow.lib as _lib
ImportError: libstdc++.so.6: cannot open shared object file: No such file or
directory
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]