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.

Cython compile error when `python build/build.py`

See original GitHub issue

I ran $ python build/build.py --enable_cuda and the following error was occurred.

Error compiling Cython file:
------------------------------------------------------------
...

  cdef int lwork = heevd_work_size(n)
  cdef int lrwork = heevd_rwork_size(n)
  cdef int liwork = syevd_iwork_size(n)
  zheevd(&jobz, &uplo, &n, a_out, &n, w_out, work, &lwork, rwork, &lrwork,
         iwork, &liwork, info_out)
                        ^
------------------------------------------------------------

jaxlib/lapack.pyx:837:25: Converting to Python object not allowed without gil
Target //build:install_xla_in_source_tree failed to build

How to resolve?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mattjjcommented, Feb 16, 2019

Glad to hear you got it solved!

0reactions
perfumescentcommented, Oct 10, 2021

I got this error when installing other libs

Converting to Python object not allowed without gil

then I upgrade scipy and work well.

So i leave a note here in case someone need it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error compiling Cython file in buildozer - python - Stack Overflow
I have already compiled two more programs using buildozer by downgrading cython but now, in this case, I don't know whats happening.
Read more >
Error compiling Cython file - Discussions on Python.org
I got this error, whan running python setup.py install for pyrosm-0.6.0. Compiling pyrosm/_arrays.pyx because it depends on /usr/lib/python3.8/ ...
Read more >
1788506 – Cython fails to build with Python 3.9 with tests ...
Cython fails to build with Python 3.9.0a2: Traceback (most recent call last): File "/builddir/build/BUILD/cython-0.29.14/runtests.py", line 1269, ...
Read more >
python setup.py build_ext --inplace fails with error
As a test, I'm trying to compile a simple cython extension. Cython was installed from Cython-0.14.1.win-amd64-py2.6.‌exe (gohlke repository) Python is 2.6.
Read more >
Source Files and Compilation - Cython's Documentation
Cython code, unlike Python, must be compiled. This happens in two stages: A .pyx (or .py ) file is compiled by Cython to...
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