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

Use workaround to avoid staticmethod 3.10/Cython issue #5202

Merged

Conversation

wphicks
Copy link
Contributor

@wphicks wphicks commented Feb 5, 2023

With Python 3.10, there appears to be an issue with the interaction between the staticmethod decorator and Cython. This workaround temporarily switches all staticmethods in FIL to classmethods until the underlying issue can be sorted.

Resolve #5200.

@wphicks wphicks requested a review from a team as a code owner February 5, 2023 01:06
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Feb 5, 2023
@dantegd dantegd added bug Something isn't working non-breaking Non-breaking change labels Feb 5, 2023
@codecov-commenter
Copy link

Codecov Report

Base: 67.12% // Head: 67.17% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (12df0d7) compared to base (85b33df).
Patch coverage: 86.04% of modified lines in pull request are covered.

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-23.02    #5202      +/-   ##
================================================
+ Coverage         67.12%   67.17%   +0.04%     
================================================
  Files               192      192              
  Lines             12396    12420      +24     
================================================
+ Hits               8321     8343      +22     
- Misses             4075     4077       +2     
Impacted Files Coverage Δ
python/cuml/common/sparsefuncs.py 92.24% <86.04%> (-0.15%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dantegd
Copy link
Member

dantegd commented Feb 5, 2023

/merge

@rapids-bot rapids-bot bot merged commit 9e40e95 into rapidsai:branch-23.02 Feb 5, 2023
jakirkham pushed a commit to jakirkham/cuml that referenced this pull request Feb 27, 2023
With Python 3.10, there appears to be an issue with the interaction between the staticmethod decorator and Cython. This workaround temporarily switches all staticmethods in FIL to classmethods until the underlying issue can be sorted.

Resolve rapidsai#5200.

Authors:
  - William Hicks (https://github.com/wphicks)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#5202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Forest Inference notebook errors on model load and provides unhelpful error message to remediate
3 participants