Orange Forum • View topic - ImportError: No module named orange

ImportError: No module named orange

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

ImportError: No module named orange

Postby sonyc » Fri May 07, 2010 16:36

Hello,

when trying to compile C45learner in order to use it in Orange, on Mac OS 10.5.8, using
python buildC45.py

I get this error message :
ImportError: No module named orange


As I'm not used to Python, any help about how to make the script find this orange library would be very appreciated !

Thanks in advance,

Sonyc

Postby Ales » Tue May 11, 2010 9:49

Depending on how you installed orange you have to run the buildC45.py script with the right python interpreter. If you installed the Orange Bundle application run:

Code: Select all
/Applications/Orange.app/Contents/MacOS/python buildC45.py


If you installed orange through fink run:
Code: Select all
/sw/bin/python2.5 buildC45.py


Return to Bugs



cron