-
Notifications
You must be signed in to change notification settings - Fork 108
error when from datafusion import SessionContext
#830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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
Successful install and importChecking pyarrow
Installing ❯ 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 ❯ 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 ❯ 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 |
Checking pyarrow
Installing
the machine / environment is the same of version 36 |
I know this isn't your exact setup, but I was able to spin a vm up with:
I was able to successfully install with >>> import pyarrow
>>> pyarrow.__version__
'17.0.0'
>>> from datafusion import SessionContext
>>> ctx = SessionContext() So... I'm at an impasse. Have you tried a completely fresh new virtual environment? |
thank you. |
Describe the bug
when import
To Reproduce
Expected behavior
it works as old version, such as version 36.0 did
Additional context
my os is windows 7
my python version
The text was updated successfully, but these errors were encountered: