Skip to content
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

minimum pyarrow version enforced even if pandas is installed #3385

Closed
mattijn opened this issue Mar 26, 2024 · 0 comments · Fixed by #3387
Closed

minimum pyarrow version enforced even if pandas is installed #3385

mattijn opened this issue Mar 26, 2024 · 0 comments · Fixed by #3387
Labels

Comments

@mattijn
Copy link
Contributor

mattijn commented Mar 26, 2024

The error we are facing in an environment says:

RuntimeError: The pyarrow package must be version 11.0.0 or greater. Found version 6.0.1

And is caused by these lines:
https://github.com/altair-viz/altair/blob/main/altair/utils/core.py#L591-L592

    # if data is specified and type is not, infer type from data
    if "type" not in attrs:
        if pyarrow_available() and data is not None and isinstance(data, DataFrameLike):
            ...

        elif isinstance(data, pd.DataFrame):
            # Fallback if pyarrow is not installed or if pandas is older than 1.5

In that particular environment pandas is installed by default and we are not able to upgrade pyarrow.

Now the altair specifications errors as the code never tries the pandas approach as it has found a pyarrow version that is too old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant