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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scipy build failing with Cython error #2918

Closed
ryanking13 opened this issue Jul 28, 2022 · 4 comments 路 Fixed by #2920
Closed

Scipy build failing with Cython error #2918

ryanking13 opened this issue Jul 28, 2022 · 4 comments 路 Fixed by #2920
Labels
bug Something isn't working

Comments

@ryanking13
Copy link
Member

馃悰 Bug

Scipy build is failing in main. I guess it is related to the new Cython release.

_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.
Traceback (most recent call last):
  File "/root/repo/packages/scipy/build/scipy-1.8.1/tools/cythonize.py", line 317, in <module>
    main()
  File "/root/repo/packages/scipy/build/scipy-1.8.1/tools/cythonize.py", line 313, in main
    find_process_files(root_dir)
  File "/root/repo/packages/scipy/build/scipy-1.8.1/tools/cythonize.py", line 302, in find_process_files
    for result in pool.imap_unordered(lambda args: process(*args), jobs):
  File "/usr/local/lib/python3.10/multiprocessing/pool.py", line 870, in next
    raise value
  File "/usr/local/lib/python3.10/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/root/repo/packages/scipy/build/scipy-1.8.1/tools/cythonize.py", line 302, in <lambda>
    for result in pool.imap_unordered(lambda args: process(*args), jobs):
  File "/root/repo/packages/scipy/build/scipy-1.8.1/tools/cythonize.py", line 236, in process
    processor_function(fromfile, tofile, cwd=path)
  File "/root/repo/packages/scipy/build/scipy-1.8.1/tools/cythonize.py", line 102, in process_pyx
    raise Exception('Cython failed')
Exception: Cython failed
@ryanking13 ryanking13 added the bug Something isn't working label Jul 28, 2022
@ryanking13
Copy link
Member Author

Upstream (scipy) issue tracking this bug: scipy/scipy#16718

@rth
Copy link
Member

rth commented Jul 28, 2022

We should pin the cython version used, as it's likely to be forward incompatible, particularly once the long-awaited 3.0 version is released.

@ryanking13
Copy link
Member Author

Or we can think of adding a new patch for scipy until they release 1.9.0.

@rth
Copy link
Member

rth commented Jul 28, 2022

As you prefer. But it's really upstream job to fix these things, we are just building the latest version that is known to work. So there is no real advantage for us to run the latest Cython in this particular case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants