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

refactor: Test Python docs build #19187

Closed
wants to merge 1 commit into from

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Oct 11, 2024

build-python-docs is failing on main -

Log output AttributeError: 'function' object has no attribute '__arrow_c_stream__'
Warning, treated as error:
autodoc: failed to import method 'DataFrame.__arrow_c_stream__' from module 'polars'; the following exception was raised:
Traceback (most recent call last):
  File "/home/runner/work/polars/polars/.venv/lib/python3.12/site-packages/sphinx/util/inspect.py", line 374, in safe_getattr
    return getattr(obj, name, *defargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute '__arrow_c_stream__'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/runner/work/polars/polars/.venv/lib/python3.12/site-packages/sphinx/ext/autodoc/importer.py", line 209, in import_object
    obj = attrgetter(obj, mangled_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/polars/polars/.venv/lib/python3.12/site-packages/sphinx/ext/autodoc/__init__.py", line 329, in get_attr
    return autodoc_attrgetter(self.env.app, obj, name, *defargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/polars/polars/.venv/lib/python3.12/site-packages/sphinx/ext/autodoc/__init__.py", line 2844, in autodoc_attrgetter
    return safe_getattr(obj, name, *defargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/polars/polars/.venv/lib/python3.12/site-packages/sphinx/util/inspect.py", line 390, in safe_getattr
    raise AttributeError(name) from exc
AttributeError: __arrow_c_stream__

make: *** [Makefile:27: html] Error 2
Error: Process completed with exit code 2.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels Oct 11, 2024
@nameexhaustion nameexhaustion marked this pull request as ready for review October 11, 2024 05:03
@nameexhaustion nameexhaustion marked this pull request as draft October 11, 2024 05:03
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.64%. Comparing base (194b31e) to head (3ccf78e).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19187      +/-   ##
==========================================
- Coverage   79.65%   79.64%   -0.01%     
==========================================
  Files        1531     1531              
  Lines      208937   208939       +2     
  Branches     2418     2418              
==========================================
- Hits       166421   166412       -9     
- Misses      41969    41980      +11     
  Partials      547      547              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nameexhaustion nameexhaustion changed the title refactor: Test CI refactor: Test Python docs build Oct 11, 2024
@nameexhaustion
Copy link
Collaborator Author

#19188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant