enricofer / go2mapillary

a plugin for displaying and extracting information from Mapillary street level imagery with QGIS (3.0)
GNU General Public License v3.0
34 stars 14 forks source link

Uncaught ImportError: PyQt4 classes cannot be imported in QGIS 3.x. Use PyQt5 or the version independent qgis.PyQt import instead. #42

Open bonusjoker opened 4 years ago

bonusjoker commented 4 years ago

Nemohu načíst zásuvný modul 'Video_UAV_Tracker' due to an error when calling its classFactory() method Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/huu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Video_UAV_Tracker\__init__.py", line 46, in classFactory
    from .VideoGis import VideoGis
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/huu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Video_UAV_Tracker\VideoGis.py", line 52, in <module>
    import resources
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/huu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\go2mapillary\resources.py", line 10, in <module>
    from PyQt4 import QtCore
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 768, in _import
    raise ImportError(msg)
ImportError: PyQt4 classes cannot be imported in QGIS 3.x.
Use PyQt5 or the version independent qgis.PyQt import instead.

go2mapillary 2.3, QGIS 3.14.16-Pi on Windows 10