Changeset 9200:2c219fb6f34b in orange


Ignore:
Timestamp:
11/11/11 15:50:53 (2 years ago)
Author:
markotoplak
Branch:
default
Convert:
ef2c435188731bb7206abebb6277aa5ac8f87def
Message:

Friendlier import error of networkx.

Location:
orange/Orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/__init__.py

    r8910 r9200  
    1414        __import__(name, globals(), locals(), [], -1) 
    1515    except Exception: 
    16         warnings.warn("Could not import: " + name, UserWarning, 2) 
     16        warnings.warn("Some features are disables, because Orange could not import: " + name, UserWarning, 2) 
    1717 
    1818_import("data") 
  • orange/Orange/network/__init__.py

    r9002 r9200  
    6262except ImportError: 
    6363    import warnings 
    64     warnings.warn("Warning: install networkx to use the 'Orange.network' module.")  
     64    warnings.warn("Warning: some features are disabled. Install networkx to use the 'Orange.network' module.")  
    6565 
    6666import community 
Note: See TracChangeset for help on using the changeset viewer.