Skip to content

Commit 02eb4ab

Browse files
committed
Orange: add more informatino on missing compiled libraries
1 parent 2056481 commit 02eb4ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Orange/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# This module is a mixture of imports and code, so we allow import anywhere
22
# pylint: disable=wrong-import-position,wrong-import-order
33

4+
try:
5+
from Orange.data import _variable
6+
except ImportError:
7+
raise ImportError("Compiled libraries cannot be found.\n"
8+
"Try reinstalling the package with: pip install --no-binary Orange3") from None
9+
410
from Orange import data
511

612
from .misc.lazy_module import _LazyModule

0 commit comments

Comments
 (0)