BUG: memoryview error with Cython 0.29.31
See original GitHub issueCython 0.29.31 was release a few hours ago and it corresponds to our CI going red.
https://github.com/cython/cython/releases/tag/0.29.31
See for instance: https://github.com/scipy/scipy/runs/7551272609?check_suite_focus=true
Error compiling Cython file:
1453
------------------------------------------------------------
1454
...
1455
return np.array(result, dtype=np.int64)
1456
1457
1458
@cython.wraparound(False)
1459
@cython.boundscheck(False)
1460
def _weightedrankedtau(ordered[:] x, ordered[:] y, intp_t[:] rank, weigher, bool additive):
1461
^
1462
------------------------------------------------------------
1463
1464
_stats.pyx:173:0: Referring to a memoryview typed argument directly in a nested closure function is not supported in Cython 0.x. Either upgrade to Cython 3, or assign the argument to a local variable and use that in the nested function.
Issue Analytics
- State:
- Created a year ago
- Comments:17 (13 by maintainers)
Top Results From Across the Web
Cython Changelog — Cython 3.0.0a11 documentation
A compiler crash when running Cython thread-parallel from distutils was resolved. (Github issue #4503). Includes all bug-fixes from the 0.29.26 (2021-12-16) ...
Read more >SciPy 1.9.0 Release Notes — SciPy v1.9.3 Manual
Our development attention will now shift to bug-fix releases on the 1.9.x branch, and on adding new ... #16718: BUG: memoryview error with...
Read more >Cython memoryviews error: Invalid index for ... - Stack Overflow
I'm trying to implement standard quicksort in cython using memoryviews. Here is my code: def quicksort_cython(double[:] l): _quicksort(l, 0, ...
Read more >Cython/CHANGELOG and Cython Releases (Page 5) | LibHunt
Diverging from the usual behaviour, len(memoryview) , len(char*) and len(Py_UNICODE*) returned an unsigned size_t value. They now return a signed Py_ssize_t , ...
Read more >Cython: C-Extensions for Python
Cython is an optimising static compiler for both the Python programming language ... code level debugging to find bugs in your Python, Cython...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@xkszltl we are about to release 1.9 so if you can wait a few days that would be it. Otherwise you can use nightly builds we are making. But you might need to wait a bit until this PR gets into the nightly (not sure when is the rebuild happening).
Thanks @jjerphan. Warren already has a fix, I am just waiting for the CI to finish to get it in as it break all workflows. So we better fix this quick and if there are improvements to make later, we can still iterate 😃