Orange Forum • View topic - OWFeatureSelectionMeasures modulTMT ImportError

OWFeatureSelectionMeasures modulTMT ImportError

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

OWFeatureSelectionMeasures modulTMT ImportError

Postby thc » Wed Nov 29, 2006 0:19

When I tried to launch the FeatureSelectionMeasures widget, I got the following error:

Code: Select all
Unhandled exception of type exceptions.ImportError  occured at 18:15:01:
Traceback:
  File: orngDoc.py in line 252
  Function name: addWidget
  Code: newwidget = orngCanvasItems.CanvasWidget(self.signalManager, self.canvas, self.canvasView, widget, self.canvasDlg.defaultPic, self.canvasDlg)
    File: orngCanvasItems.py in line 347
    Function name: __init__
    Code: exec(code)
      File: OWFeatureSelectionMeasures.py in line 12
      Function name: ?
      Code: from orngTextCorpus import FeatureSelection, checkFromText
        File: orngTextCorpus.py in line 3
        Function name: ?
        Code: from modulTMT import tokenize
          File: modulTMT.py in line 4
          Function name: ?
          Code: import _modulTMT
          Exception type: exceptions.ImportError
          Exception value: /home/tchen/workspace/orange/_modulTMT.so: wrong ELF class: ELFCLASS64


Is there anyway I can get the source code for _modulTMT.so, so that it can be compiled for our machine?

Orange is a nice project, thanks.

Postby Blaz » Fri Dec 01, 2006 20:00

thanks, this is a bug (TMT is text-mining package not released yet). we'll fix it.

More Info

Postby thc » Mon Dec 04, 2006 22:03

Thanks, Blaz.

FWIW, here is the output from the file command:

tchen@orange:~/site-packages/orange$ file *.so
c45.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
corn.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
_modulTMT.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
orangene.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
orangeom.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
orange.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
statc.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

Postby Blaz » Tue Dec 05, 2006 16:51

what you probably wanted to do is to select features based on some feature scoring method. i realize now that you used a purely experimental widget from "Other" pane, that was created for text mining and probably does not do what you need. also, there was a widget from Data pane that did feature selection, but was recently (within past month) retracted since janez re-wrote Rank widget.

So what you should really use is Rank widget (Data pane) and its "Select attributes" feature.


Return to Questions & Support