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

RuntimeWarning: Python binding for CumulativeOptions not exposed #39169

Closed
nbro10 opened this issue Dec 11, 2023 · 4 comments
Closed

RuntimeWarning: Python binding for CumulativeOptions not exposed #39169

nbro10 opened this issue Dec 11, 2023 · 4 comments

Comments

@nbro10
Copy link

nbro10 commented Dec 11, 2023

Describe the bug, including details regarding any error messages, version, and platform.

Settings

  • Python: Python 3.7.17 (yes, I know this is no longer officially supported)
  • OS: Mac OS Sonoma [14.1.2 (23B92)]
  • Processor: m1
  • I did brew install cmake
  • I did brew install apache-arrow
  • pyarrow version: 12.0.1
  • pandas version: 1.3.5

Logs

...
    import pandas as pd
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pandas/__init__.py:50: in <module>
    from pandas.core.api import (
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pandas/core/api.py:29: in <module>
    from pandas.core.arrays import Categorical
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pandas/core/arrays/__init__.py:20: in <module>
    from pandas.core.arrays.string_arrow import ArrowStringArray
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pandas/core/arrays/string_arrow.py:65: in <module>
    import pyarrow.compute as pc
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pyarrow/compute.py:331: in <module>
    _make_global_functions()
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pyarrow/compute.py:328: in _make_global_functions
    g[cpp_name] = g[name] = _wrap_function(name, func)
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pyarrow/compute.py:287: in _wrap_function
    options_class = _get_options_class(func)
/Users/me/Library/Caches/pypoetry/virtualenvs/myproj-kIMGt_mS-py3.7/lib/python3.7/site-packages/pyarrow/compute.py:207: in _get_options_class
    .format(class_name), RuntimeWarning)
E   RuntimeWarning: Python binding for CumulativeOptions not exposed

Component(s)

Python

@raulcd
Copy link
Member

raulcd commented Dec 11, 2023

If you are installing apache-arrow from brew you'll be installing 14.0.1 instead of 12.0.1. CumulativeOptions was added on 13.0.0 it will not be present on 12.0.1: #32190

I think you have several options. Build and install Apache Arrow CPP from the 12.0.1 released sources to have a compatible Arrow CPP or update pyarrow to 13.0.0 or newer.

@jorisvandenbossche
Copy link
Member

This issue can be closed I think? (not actionable on Arrow's side)

@nbro10
Copy link
Author

nbro10 commented Jan 8, 2024

It's been a while since I've come across this issue.

Wouldn't it be possible to install a specific version of apache-arrow with brew (like you could do with pip)? I think the problem is installing from source. This can sometimes be problematic or tedious because you have to follow several steps. Btw, can you please provide the link to these steps?

@raulcd
Copy link
Member

raulcd commented Jan 8, 2024

Thanks for the suggestion @nbro10 . Allowing to install several versions from brew would require some extra maintenance effort but is indeed something that could be explored. I think this could be opened on a different issue with the suggestion.
As per building from source the documentation can be found here:
https://arrow.apache.org/docs/developers/cpp/building.html

@jorisvandenbossche jorisvandenbossche closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants