Orange Forum • View topic - Error while Installation

Error while Installation

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

Error while Installation

Postby HarshitDubey » Mon Mar 05, 2012 0:50

Hey

I tried to install orange on my system which has Ubuntu 10.04 as per the instructions given on this link https://bitbucket.org/biolab/orange. I also downloaded the latest source code from the link.
But when i run "python setup.py build", i get the following error :

"""
Traceback (most recent call last):
File "setup.py", line 718, in <module>
setup_package()
File "setup.py", line 693, in setup_package
write_version_py()
File "setup.py", line 676, in write_version_py
from Orange.version import hg_revision as HG_REVISION
File "/home/harshit/Harshit/TEMP/biolab-orange-d7544a94c00f/Orange/__init__.py", line 4, in <module>
from . import orange
ImportError: cannot import name orange
"""

Please help

Re: Error while Installation

Postby Anze » Mon Mar 05, 2012 11:24

Fixed in revision 510c2b571117.

BTW, if you plan to develop orange, you should probably clone the repository using
Code: Select all
hg clone ssh://hg@bitbucket.org/biolab/orange

and then compile it using
Code: Select all
python setup.py build_ext -i

This way, compiled objects will be placed into the Orange dir. This way, you can modify python files and try out your changes without reinstalling orange.

Re: Error while Installation

Postby HarshitDubey » Mon Mar 05, 2012 23:09

Hey
Thanks for the help, it worked. But after installing when i try to run it it gives me the following error....

IOError: [Errno 2] No such file or directory: '/usr/lib/python2.6/dist-packages/orange/Orange/OrangeCanvas/orngCanvas.pyw'

Please Help

Re: Error while Installation

Postby Anze » Tue Mar 06, 2012 10:51

This looks like you have multiple versions of orange installed.

Try deleting the /usr/lib/python2.6/dist-packages/orange folder and install it again.


Return to Questions & Support



cron