VQA-Demo-GUI icon indicating copy to clipboard operation
VQA-Demo-GUI copied to clipboard

ModuleNotFoundError::

Open mady143 opened this issue 5 years ago • 1 comments

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 avatar Dec 16 '19 06:12 mady143

@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.

swetha2410 avatar Jun 06 '20 22:06 swetha2410