Ask Your Question
0

Orange installed but not enabled?

asked 2013-04-06 03:40:08 -0500

Ben Hoyle gravatar image

Hi,

I'm trying to use the machine learning libraries.

I've installed Orange (both via easyinstall and by downloading the source) but the SVMClassifier.py code returns an error. I think I've narrowed it down to the check on the ORANGEENABLED variable - this appears to be false.

Any idea how I set the ORANGE_ENABLED variable to true following install of Orange (Orange is importing with no errors in other py scripts)? I assume it's some kind of system variable...

Many thanks,

Ben

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-26 03:53:49 -0500

Davis Marques gravatar image

grep'ing the SimpleCV library reveals that the "ORANGE_ENABLED" variable is set in the base.py module. Here's the relevant block of code from base.py:

ORANGE_ENABLED = True
try:
    try:
        import orange
    except ImportError:
        import Orange; import orange
    import orngTest #for cross validation
    import orngStat
    import orngEnsemble # for bagging / boosting
except ImportError:
    ORANGE_ENABLED = False

If SVMClassifier is failing for you on the ORANGE_ENABLED check, then we know that the import failed in the code block above.

Are you sure that the script you are executing is using the same python installation as the other scripts where the Orange import succeeds? I would suggest that you try and interactively import orange at the console and see if it works. Perhaps that will help you narrow down the source of the problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-06 03:40:08 -0500

Seen: 476 times

Last updated: Oct 26 '13