sh run_expresso.sh: RuntimeError: qtutils is only compatible with version 2 of the PyQt4

25 views
Skip to first unread message

Sara Caffe

unread,
Apr 19, 2018, 6:24:23 PM4/19/18
to expresso-users
Hi, 

I am facing a runtime error. Previously, I was getting this error:

from PyQt4 import QtCore, QtGui
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named PyQt4

I installed PyQt4 by following the instructions in this link

However, I am getting the following error after installing: 
Traceback (most recent call last):

 
 File "/home/esara/expresso/src/main/main.py", line 13, in <module>
   
from qtutils import inmain_later,inthread,inmain
 
File "/home/esara/anaconda2/envs/testcaffe/lib/python2.7/site-packages/qtutils/__init__.py", line 27, in <module>
   
from qtutils.qt.QtCore import qInstallMessageHandler
 
File "/home/esara/anaconda2/envs/testcaffe/lib/python2.7/site-packages/qtutils/qt.py", line 66, in <module>
    check_pyqt4_api
()
 
File "/home/esara/anaconda2/envs/testcaffe/lib/python2.7/site-packages/qtutils/qt.py", line 55, in check_pyqt4_api
   
raise RuntimeError(msg)
RuntimeError: qtutils is only compatible with version 2 of the  PyQt4 API.Whilst you can import PyQt4 prior to importing qtutils (in order to tell qtutils to use PyQt4), either set the API version to 2 yourself, or import qtutils (which will set it for you) prior to importing QtGui or QtCore.


Have you faced this error ever? If yes, could you please let me know how to solve it? Thanks
Reply all
Reply to author
Forward
0 new messages