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.

On Mac OS X, importing ray before numba dies with llvm error: "Expected all immutable passes to be initialized"

See original GitHub issue

System information

  • OS Platform and Distribution: Mac OS X 10.14.5
  • Ray installed from (source or binary): ray-0.7.2-cp37-cp37m-macosx_10_6_intel.whl
  • Ray version: 0.7.2
  • Python version: 3.7.2
  • Exact command to reproduce:
import ray
import numba

Describe the problem

Versions of ray>=0.7.1 cannot be imported before numba or an issue with llvmlite will be triggered (see also https://github.com/numba/numba/issues/4256 for additional minimal reproduction steps). Importing numba first seems to work around the issue.

The error reporting is an assertion failure:

Assertion failed: (PassInf && "Expected all immutable passes to be initialized"), function addImmutablePass, file /Users/buildbot/miniconda3/conda-bld/llvmdev_1556270736866/work/lib/IR/LegacyPassManager.cpp, line 849.

that leads to the python interpreter aborting. The issue does not seem to occur on Linux.

Version 0.7.0 seems unaffected.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
robertnishiharacommented, Feb 24, 2020

Fixed in ray==0.8.2.

1reaction
robertnishiharacommented, Nov 25, 2019

@MQQ so yes, we are planning to do it. Not sure if it will be in the upcoming release or the following one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes — Numba 0.50.1 documentation - PyData |
If a module is imported from a moved location the shim will issue a deprecation warning and suggest how to update the import...
Read more >
Trouble importing numba - python - Stack Overflow
Ok, I'm using python 3.3. I have numpy, llvm, llvmpy, llpyhton, llvm_array, llvm_cbuilder and llvmath installed. I have also installed numba ...
Read more >
Import isl(+imath) as an external library into Polly - Mailing Lists
We import isl b3e0fa7a05d as well as imath 4d707e5ef2. These are the git versions Polly currently was tested with when using ...
Read more >
Changements — Documentation Python 3.7.14 - Python Docs
bpo-41100: Fix configure error when building on macOS 11. ... bpo-39427: Document all possibilities for the -X options in the command line help...
Read more >
Release 0+untagged.50.ge6068ba.dirty Modin contributors
Modin can be installed with pip on Linux, Windows and MacOS. ... pip install modin[ray] # Install Modin dependencies and Ray to run...
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