Orange Forum • View topic - Can't start Orange Canvas

Can't start Orange Canvas

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

Can't start Orange Canvas

Postby satimis » Mon Aug 23, 2010 15:45

Hi folks

Ubuntu 10.04 64 bit


Performed following steps:

Packages:-
Index of /orange/debian/dists/lenny/main/binary-amd64
http://www.ailab.si/orange/debian/dists/lenny/main/binary-amd64/

Download and install;

1)
python-orage-svn_0.0.9355-1_amd64.deb
Open with GDebi Package installer (default)
-> OK

2)
orange-svn_0.0.9355-1_amd64.deb
Open with GDebi Package installer (default)
-> OK


$ python /usr/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw", line 7, in <module>
import orngEnviron, orngAddOns
ImportError: No module named orngEnviron

Can't start Orange Canvas. Please help. TIA


B.R.
satimis

Postby Ales » Mon Aug 23, 2010 23:43

You are probably running orange with a different python version then the one it was installed for (it is installed for 2.5, you are probably using 2.6)

Postby satimis » Tue Aug 24, 2010 2:22

Hi Ales,

Thanks for your advice.

$ apt-cache policy python
Code: Select all
python:
  Installed: 2.6.5-0ubuntu1
  Candidate: 2.6.5-0ubuntu1
  Version table:
 *** 2.6.5-0ubuntu1 0
        500 http://hk.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status


python 2.5 is no more on Ubuntu 10.04 repo. What shall I do?

I found following thread;
Howto: Install Python 2.5.5 on Ubuntu 10.04 Lucid Lynx
http://welcometoubuntu.blogspot.com/2010/05/howto-install-python-255-on-ubuntu-1004.html

Can I follow it? Any advice. TIA

Besides I have following packages installed;
Code: Select all
make g++ python-dev python-numpy-ext python-numeric-ext python-matplotlib python-imaging python-qwt5-qt4


I can't find python-numarray-ext. The Ubuntu 10.04 was upgraded from 9.10


B.R.
satimis

Postby satimis » Tue Aug 24, 2010 4:39

Hi Ales,

Further to my late posting, I installed python2.5.5 on Ubuntu 10.04 according to the URL mentioned previously. Now both python 2.6.5 and python2.5.5 are running simultaneously. (I can't find python2.5 on python website). I haven't run downgrade because some other packages may need python2.6.5


$ ls /usr/bin/python2.5/bin/
Code: Select all
idle  pydoc  python  python2.5  python2.5-config  python-config  smtpd.py



$ /usr/bin/python2.5/bin/python /usr/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw
Code: Select all
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/orange/OrangeCanvas/orngCanvas.pyw", line 7, in <module>
    import orngEnviron, orngAddOns
ImportError: No module named orngEnviron



But still failed.


Whether I should follow following link to build orange from source?
http://www.ailab.si/svn/orange/trunk/orange/doc/INSTALL.linux.txt

TIA


B.R.
satimis

Postby marko » Tue Aug 24, 2010 7:44

I suggest that you install Orange from source, as you already mentioned, into corresponding Python 2.6 paths. At least that is what works for me.

Postby Guest » Tue Aug 24, 2010 7:55

Hi marko,

Yes, I'll delete the installed orange packages and install orange from source as described on the URL.

But I can't resolve
Code: Select all
4. RUNNING

To use Orange in python scripts, try importing "orange" and "orngStat"
in python interpreter. It should work flawlessly.


What does it mean "importing "orange" and "orngStat" in python interpreter?

Any advice? TIA

B.R.
satimis

Postby marko » Tue Aug 24, 2010 8:08

Start the python interpreter: type "python" in the command line. Then type "import orange" and "orngStat" into it.

Postby satimis » Wed Aug 25, 2010 1:58

Hi marko,

Thanks for your advice.


On Debian 504

$ python
Code: Select all
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
>>> import orngStat
>>> quit()


I don't know whether adding an extra "import" before orngStat would matter?

Therefore I repeated;
$ python
Code: Select all
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orngStat
>>> quit()


$ orange
start "Orange Canvas" widget

$ orngStat
no response.

Any advice? TIA

B.R.
satimis

Postby satimis » Wed Aug 25, 2010 2:18

Hi marko,

Tried again on Ubuntu 10.04

$ python
Code: Select all
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
>>> orngStat
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'orngStat' is not defined
>>> import orngStat
>>> quit()


"import" can't be left out.

$ orange
Code: Select all
The program 'orange' is currently not installed.  To run 'orange' please ask your administrator to install the package 'orange'


It won't start "Orange Canvas" widget.

Code: Select all
$ python /usr/lib/python2.6/dist-packages/orange/OrangeCanvas/orngCanvas.pyw


starts "Orange Canvas" widget

On closing the widget following warning displayed on terminal
Code: Select all
Segmentation fault


What does it mean? Tks

$ orngStat
Code: Select all
orngStat: command not found


$ locate orngStat.pyw
$ locate orngStat.*
both without printout


B.R.
satimis

Postby marko » Wed Aug 25, 2010 5:21

The installation seems normal. I unintentionally left out the second "import".


Return to Questions & Support