Orange Forum • View topic - Linux install strangeness

Linux install strangeness

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

Linux install strangeness

Postby tdunning » Wed Mar 22, 2006 21:32

I am trying to install on Linux (Redhat 4). The normal installation seems to work and the canvas comes up nicely. I can read a dataset, but when I try to add an SVM learner, I get the problem whose stack trace is shown below. I have checked and found that python can find orngCRS without a problem, but the internal package _orngCRS can't be found.

Since I don't know python well, this is a brick wall for me. Does anybody have some hints?

Unhandled exception of type exceptions.ImportError occured at 12:30:46:
Code: Select all
Traceback:
  File: orngDoc.py in line 254
  Function name: addWidget
  Code: newwidget = orngCanvasItems.CanvasWidget(self.signalManager, self.canvas, self.canvasView, widget, self.canvasDlg.defaultPic, self.canvasDlg)
    File: orngCanvasItems.py in line 350
    Function name: __init__
    Code: exec(code)
      File: OWSVM.py in line 9
      Function name: ?
      Code: import orange, orngSVM, OWGUI
        File: orngSVM.py in line 9
        Function name: ?
        Code: import orange, orngTest, orngStat, sys, orngSVM_Jakulin
          File: orngSVM_Jakulin.py in line 31
          Function name: ?
          Code: import orngCRS
            File: orngCRS.py in line 4
            Function name: ?
            Code: import _orngCRS
            Exception type: exceptions.ImportError
            Exception value: No module named _orngCRS

Postby tomaz » Tue May 23, 2006 9:40

The SVM library for Orange is developed by Aleks Jakulin (http://kt.ijs.si/aleks) and it is not (yet) an integral part of Orange. On Linux you need to install the library separately, see this link http://kt.ijs.si/aleks/orng.

Installation steps:
1. get the file http://kt.ijs.si/aleks/orng/orngExtn-1_8_2_py23.zip
2. unzip it
3. change directory to orngExtn-1_8_2_py23 and run: python setup.py build
4. copy the file build/lib.linux-i686-2.3/_orngCRS.so (directory name might wary) into the directory where all other orange library files are (usually /usr/lib/pytho2.3/site-packages/orange)

However, there seems to be an incompatibility with the compiled library you get from these sources. I will talk to Aleks about this.

Postby azaroth » Tue Aug 01, 2006 16:21

tomaz wrote:The SVM library for Orange is developed by Aleks Jakulin (http://kt.ijs.si/aleks) and it is not (yet) an integral part of Orange. On Linux you need to install the library separately, see this link http://kt.ijs.si/aleks/orng.
However, there seems to be an incompatibility with the compiled library you get from these sources. I will talk to Aleks about this.


I see that there's svm.cpp/svm.hpp in source/orange, is this no longer the case?

Either way, following the example, I get the following very odd behaviour:

Python 2.4.3 (#1, Jun 19 2006, 11:53:20)
[GCC 4.0.0 20050519 (Red Hat 4.0.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import orange
>>> data = orange.ExampleTable("doc/datasets/iris.tab")
>>> l=orange.SVMLearner()
>>> l
<SVMLearner instance at 0x9d526d8>
>>> l.svm_type=orange.SVMLearner.NU_SVC
>>> l.nu=0.3
>>> l.probability=True
>>> l
<SVMLearner instance at 0x9d526d8>
>>> c=l(data)
>>> l
>>> c
>>> type(l)
>>> type(c)
>>>


!

-- Azaroth

Fixing the orngCRS probs

Postby Guest » Mon Aug 14, 2006 15:14

Azaroth,

Check out my build instructions a few posts down:

http://www.ailab.si/orange/forum/viewtopic.php?t=299

It will tell you how to get a compatible version of orngCRS.

Regards,
Mark


Return to Questions & Support



cron