Orange Forum • View topic - code breaks after updating the latest version

code breaks after updating the latest version

A place to ask questions about methods in Orange and how they are used and other general support.

code breaks after updating the latest version

Postby ghyan » Tue May 08, 2012 17:54

After I checked in the latest version (version 2.6a1, built on May 8 2012), my previous code breaks, and it can't even find the Orange module:

import Orange
ImportError: No module named Orange

But the code seems to be able to find orange, if I use "import orange". From the changes of code directories, I guess there is a significant API revamping going on? Thanks.

Re: code breaks after updating the latest version

Postby Ales » Tue May 08, 2012 18:19

Yes the directory structure has been changed. I you are using the Orange from the OSX bundle with the system python make sure to set the proper PYTHONPATH
Code: Select all
export PYTHONPATH=/Applications/Orange.app/Contents/Resources:/Applications/Orange.app/Contents/Resources/Orange/orng
python

Re: code breaks after updating the latest version

Postby ghyan » Tue May 08, 2012 21:13

Great. Thanks, Ales. Everything works smoothly now.


Return to Questions & Support



cron