Orange Forum • View topic - Orange Canvas: ImportError: No module named Qwt5

Orange Canvas: ImportError: No module named Qwt5

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

Orange Canvas: ImportError: No module named Qwt5

Postby acameron » Mon Nov 09, 2009 15:20

I've been using Orange Canvas for a little while, but this bug has only cropped up recently. I can't imagine why.. In order to reproduce, I close Orange Canvas, open it again, and click on the "Scatterplot" widget. Here is the output:

Code: Select all
There were problems importing the following widgets:
OWCorrAnalysis: No module named qttable
OWSimon: No module named Qwt5
The following widgets could not be imported and will not be available: OWCorrAnalysis.
The following prototype widgets could not be imported and will not be available: OWSimon.
Unhandled exception of type ImportError occured at 9:12:20:
Traceback:
  File: orngDoc.py, line 248 in addWidget
  Code: newwidget = orngCanvasItems.CanvasWidget(self.signalManager, self.canvas, self.canvasView, widgetInfo, self.canvasDlg.defaultPic, self.canvasDlg, widgetSettings)
    File: orngCanvasItems.py, line 154 in __init__
    Code: m = __import__(widgetInfo.fileName)
      File: OWScatterPlot.py, line 13 in <module>
      Code: from OWScatterPlotGraph import *
        File: OWScatterPlotGraph.py, line 4 in <module>
        Code: from OWGraph import *
          File: OWGraph.py, line 6 in <module>
          Code: from PyQt4.Qwt5 import *
            ImportError: No module named Qwt5


After installing the python-qwt5-qt4 package from Synaptic, I get a different error. Once again, close Orange Canvas, reopen it, click on Scatterplot:

Code: Select all
There were problems importing the following widgets:
OWCorrAnalysis: No module named qttable
OWSimon: /usr/lib/pymodules/python2.6/PyQt4/Qwt5/Qwt.so: undefined symbol: _ZN13QwtLegendItem17setIdentfierWidthEi
The following widgets could not be imported and will not be available: OWCorrAnalysis.
The following prototype widgets could not be imported and will not be available: OWSimon.
Unhandled exception of type ImportError occured at 9:17:20:
Traceback:
  File: orngDoc.py, line 248 in addWidget
  Code: newwidget = orngCanvasItems.CanvasWidget(self.signalManager, self.canvas, self.canvasView, widgetInfo, self.canvasDlg.defaultPic, self.canvasDlg, widgetSettings)
    File: orngCanvasItems.py, line 154 in __init__
    Code: m = __import__(widgetInfo.fileName)
      File: OWScatterPlot.py, line 13 in <module>
      Code: from OWScatterPlotGraph import *
        File: OWScatterPlotGraph.py, line 4 in <module>
        Code: from OWGraph import *
          File: OWGraph.py, line 6 in <module>
          Code: from PyQt4.Qwt5 import *
            File: __init__.py, line 32 in <module>
            Code: from Qwt import *
              ImportError: /usr/lib/pymodules/python2.6/PyQt4/Qwt5/Qwt.so: undefined symbol: _ZN13QwtLegendItem17setIdentfierWidthEi


Please let me know if you need further details. I am not an utter incompetent with source code, but I am completely unfamiliar with Orange's. Cheers!

Postby marko » Mon Nov 09, 2009 17:49

This is a known bug in Ubuntu's Qwt5 package. As the bug is not resolved, try the following workaround if you are using Ubuntu Karmic. It worked for me. Download pyqwt from Vaclav's PPA: https://launchpad.net/~eudoxos/+archive/ppa/+sourcepub/785933/+listing-archive-extra. Just download the correct version for your system architecture and install it.

Good luck!

Postby acameron » Mon Nov 09, 2009 21:30

Cheers! That's done it. =)

worked for me tx!

Postby hugo_koopmans » Sun Jun 13, 2010 10:20

super guys, worked ok for me on ubuntu Karmic 9.04

tx


Return to Bugs



cron