diff --git a/source/frontend/carla_shared.py b/source/frontend/carla_shared.py index eb7eff29a..c86436d39 100644 --- a/source/frontend/carla_shared.py +++ b/source/frontend/carla_shared.py @@ -38,7 +38,12 @@ except: # ------------------------------------------------------------------------------------------------------------ # Imports (PyQt5) -from PyQt5.Qt import PYQT_VERSION_STR +# import changed in PyQt 5.15.8, so try both +try: + from PyQt5.Qt import PYQT_VERSION_STR +except ImportError: + from PyQt5.QtCore import PYQT_VERSION_STR + from PyQt5.QtCore import qFatal, QT_VERSION, QT_VERSION_STR, qWarning, QDir, QSettings from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QFileDialog, QMessageBox