question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: memoryview error with Cython 0.29.31

See original GitHub issue

Cython 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:closed
  • Created a year ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
tupuicommented, Jul 28, 2022

@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).

1reaction
tupuicommented, Jul 28, 2022

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found