mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
Print helpful error message when libgcc error occurs. (#133)
This commit is contained in:
committed by
Philipp Moritz
parent
edf8d1ee9f
commit
a9e6a53360
@@ -2,4 +2,18 @@ from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
from numbuf.libnumbuf import *
|
||||
# See https://github.com/ray-project/ray/issues/131.
|
||||
helpful_message = """
|
||||
|
||||
If you are using Anaconda, try fixing this problem by running:
|
||||
|
||||
conda install libgcc
|
||||
"""
|
||||
|
||||
try:
|
||||
from numbuf.libnumbuf import *
|
||||
except ImportError as e:
|
||||
if not hasattr(e, "msg") or not isinstance(e.msg, str) or not "GLIBCXX" in e.msg:
|
||||
raise
|
||||
e.msg += helpful_message
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user