Skip to content

Commit 7727809

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Orange/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
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:\n"
9+
"pip install --no-binary Orange3") from None
10+
411
from Orange import data
512

613
from .misc.lazy_module import _LazyModule

0 commit comments

Comments
 (0)