Search code examples
pythonorange

Importing Orange gives me this error message: "ImportError: No module named Orange"


I'm trying to install Orange on my laptop, and it gives me this error message when I type:

import Orange

Traceback (most recent call last): File "", line 1, in ImportError: No module named Orange

I've checked other answers, and my path seems to have the Orange directory in it, and I'm using a capital letter. It worked perfectly fine on the desktop, so I'm not sure where I'm going wrong. Also, Orange Canvas won't even open, which I assume is a related issue to this but I may be wrong. Any help would be greatly appreciated.

Here are the results from sys.path:

'C:\windows\system32\python27.zip', 'C:\Python27\lib\site-packages\Orange\orng', 'C:\csvn\Python25\DLLs', 'C:\csvn\Python25\lib', 'C:\csvn\Python25\lib\plat-win', 'C:\csvn\Python25\lib\lib-tk', 'C:\Python27\Lib\site-packages\pythonwin', 'C:\csvn\Python25', 'C:\csvn\Python25\lib\site-packages', 'C:\csvn\Python25\lib\site-packages\win32', 'C:\csvn\Python25\lib\site-packages\win32\lib', 'C:\csvn\Python25\lib\site-packages\Pythonwin'

Thanks!


Solution

  • Module name is orange with a little o. Python is case sensitive so Orange != orange (as are most other programming languages).

    RTM http://orange.biolab.si/doc/ofb/start.htm :)

    import orange