VQA-Demo-GUI
VQA-Demo-GUI copied to clipboard
ModuleNotFoundError::
Hi @anujshah1003 ,
While i am trying to run the command "python VQA-VGG-16+LSTM-GUI.py" getting an error "ModuleNotFoundError: No module named 'PyQt4'" and tried a lot commands to install pyqt in my linux 18.04 environment but i was unable to installed it,could you help me resolve this issue
Thanks and Regards, Manikantha Sekhar.
@mady143 Try installing PyQt5 instead as PyQt4 and has been discontinued. And accordingly you wil have to bring a few minor changes to the code. Replace lines 8 and 9 with from PyQt5 import QtWidgets, QtCore, QtGui In line 84: replace class VQA_demo(QtGui.QWidget) with class VQA_demo(QtWidgets.QWidget) Line 261 : Replace app = QtGui.QApplication(sys.argv) with : app = QtWidgets.QApplication(sys.argv)
These are the only changes I've made so far. You might have to make more changes along the way.