Hi Tim, please upgrade to the latest LTR version, now 3.10. Instead of OL plugin, you can use QuickWebServices. All the best.
Il 20/03/20 19:21, Tim Smith ha scritto: > Hi All > > I am using QGIS 2.18.17 on Linux Mint 19.3. What I need to do is > display a Google or other aerial image such as Bing on my map. So, I am > trying to install OpenLayers Plugin but keep getting an error saying > 'The plugin is broken. Python said cannot import name QtWebKit'. I also > get the following: > >> Couldn't load plugin openlayers_plugin due to an error when calling >> its classFactory() method >> >> ImportError: cannot import name QtWebKit >> >> Traceback (most recent call last): >> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 333, in >> startPlugin >> plugins[packageName] = package.classFactory(iface) >> File >> "/home/tim/.qgis2/python/plugins/openlayers_plugin/__init__.py", line >> 25, in classFactory >> from openlayers_plugin import OpenlayersPlugin >> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in >> _import >> mod = _builtin_import(name, globals, locals, fromlist, level) >> File >> "/home/tim/.qgis2/python/plugins/openlayers_plugin/openlayers_plugin.py", >> line 30, in >> from openlayers_overview import OLOverview >> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in >> _import >> mod = _builtin_import(name, globals, locals, fromlist, level) >> File >> "/home/tim/.qgis2/python/plugins/openlayers_plugin/openlayers_overview.py", >> line 23, in >> from openlayers_ovwidget import OpenLayersOverviewWidget >> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in >> _import >> mod = _builtin_import(name, globals, locals, fromlist, level) >> File >> "/home/tim/.qgis2/python/plugins/openlayers_plugin/openlayers_ovwidget.py", >> line 38, in >> from ui_openlayers_ovwidget import Ui_Form >> File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in >> _import >> mod = _builtin_import(name, globals, locals, fromlist, level) >> File >> "/home/tim/.qgis2/python/plugins/openlayers_plugin/ui_openlayers_ovwidget.py", >> line 80, in >> from PyQt4 import QtWebKit >> ImportError: cannot import name QtWebKit >> >> Python version: 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] >> QGIS version: 2.18.17 Las Palmas, exported >> >> Python Path: >> >> * /usr/share/qgis/python/plugins/processing >> * /usr/share/qgis/python >> * /home/tim/.qgis2/python >> * /home/tim/.qgis2/python/plugins >> * /usr/share/qgis/python/plugins >> * /usr/lib/python2.7 >> * /usr/lib/python2.7/plat-x86_64-linux-gnu >> * /usr/lib/python2.7/lib-tk >> * /usr/lib/python2.7/lib-old >> * /usr/lib/python2.7/lib-dynload >> * /usr/local/lib/python2.7/dist-packages >> * /usr/lib/python2.7/dist-packages >> * /usr/lib/python2.7/dist-packages/gtk-2.0 >> * /home/tim/.qgis2//python >> * /home/tim/.qgis2/python/plugins/go2streetview >> * /home/tim/.qgis2/python/plugins/go2streetview >> * /home/tim/.qgis2/python/plugins/go2streetview >> * /home/tim/.qgis2/python/plugins/go2streetview > > I get a similar error when I try to load other plugins such as > gotostreetview. Please could anybody advise how I can get the plugin > working so I can use an aerial image on my map, thank you? > > Kind Regards > > > Tim > > * > * > > *Tim Smith BSc (Hons) MCIEEM* > > /Managing Director and Principal Ecologist/ > > / > / > > Five Valleys Ecology Logo Small CIEEM Registered Practice logo > 2019-2020_250x384 > > > *Informing - Reducing Risk - Adding Value* > > www.fivevalleysecology.co.uk <http://www.fivevalleysecology.co.uk/> > > > > T: +44 (0)1453 759306 – Choose Option 1 > M: +44 (0)7732 397984 > > > > 5 St Brendans Road > > Stroud > > Gloucestershire > > GL5 1PB > > > > CIEEM Member Subject to Code of Professional Conduct > > Registered in England No. 7540564 > > VAT No. 133 4074 43 > > > > *********************************************************************************************************************************************************************************************************************************************** > > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this email in error please notify the > system manager. This message contains confidential information and is > intended only for the individual named. If you are not the named > addressee you should not disseminate, distribute or copy this email. > Please notify Five Valleys Ecology Ltd immediately by email if you have > received this email by mistake and delete this email from your system. > If you are not the intended recipient you are notified that disclosing, > copying, distributing or taking any action in reliance on the contents > of this information is strictly prohibited. > > > > We have checked this email and its attachments for viruses. The > recipient should also check this email and any attachments for the > presence of viruses. Five Valleys Ecology Ltd accepts no liability for > any damage caused by any virus transmitted by this email. > > Description: Please consider the environment before printing this email > > ********************************************************************************************************************************************************************************************************************************************************************************* > > > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > -- Paolo Cavallini - www.faunalia.eu QGIS.ORG Chair: http://planet.qgis.org/planet/user/28/tag/qgis%20board/ _______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
