Welcome to ask.woodem.org. You may post when you login through your GitHub account.

Installation problem with PyQt4 module.

0 votes
asked Oct 24 by A Dinesh (180 points)
Hello all,

I am new to WooDEM.  I installed it following the instructions of prebuilt packages.

When I am trying to run in terminal I get PyQT4 module error.


 dinesh@Personal /home/dinesh $  
|  Personal desktop => woo
WARN: adding /home/eudoxos/minieigen11/build to path for _minieigen11
Welcome to Woo ver. 1.1+4051+40~ubuntu16.04.1, API 10104
Traceback (most recent call last):
  File "/usr/bin/woo", line 9, in <module>
    load_entry_point('woo===1.1-4051-40-ubuntu16.04.1', 'console_scripts', 'woo')()
  File "/usr/lib/python3/dist-packages/wooMain.py", line 345, in main
    import woo.plot # monkey-patches, which require woo.runtime.hasDisplay (hence not importable from _monkey :/)
  File "/usr/lib/python3/dist-packages/woo/plot.py", line 84, in <module>
    import pylab
  File "/usr/lib/python3/dist-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/usr/lib/python3/dist-packages/matplotlib/pylab.py", line 274, in <module>
    from matplotlib.pyplot import *
  File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 114, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/lib/python3/dist-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
  File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_qt5agg.py", line 15, in <module>
    from .backend_qt5 import QtCore
  File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_qt5.py", line 31, in <module>
    from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__
  File "/usr/lib/python3/dist-packages/matplotlib/backends/qt_compat.py", line 124, in <module>
    from PyQt4 import QtCore, QtGui
ImportError: No module named 'PyQt4'

1 Answer

0 votes
answered Oct 24 by eudoxos (47,770 points)
Hi, I am sorry, prebuilt-binary packages are not functional, as reported by several people already. What I advise is to use the woo-install script to compile woo, or compile by hand. Sorry for that, no time to debug packaging issues. HTH, Vaclav
commented Oct 24 by A Dinesh (180 points)

Hi Vaclav,

I tried to install through script form here (https://github.com/woodem/woo/blob/master/scripts/woo-install-ubuntu.sh)

I get the following error.


dinesh@Personal /home/dinesh $
| Personal desktop => bash woo-install-ubuntu.sh
+ echo '*** This script sets up environment with Woo. Read the script before continuing. ***'
*** This script sets up environment with Woo. Read the script before continuing. ***
+ echo


commented Oct 24 by eudoxos (47,770 points)

Try this script instead: https://github.com/woodem/woo/blob/master/scripts/woo-install.py -- I should delete the old one to not confuse anyone (kust like the packages which are broken) and update docs. On the TODO list.