[QGIS-it-user] Errore nell'aggiornamento di Go2StreetView

andreaerdna andreaerdna a libero.it
Lun 29 Gen 2018 04:12:20 PST


enricofer wrote
> Per capire il problema chiederei un aiuto a chi ha la verisone standalone
> installata: verificare se l'aggiornamento da repository comporta l'errore
> riportato o se invece la versione modificata su github:
> https://github.com/enricofer/go2streetview/archive/v7.4.zip funziona.

Uso QGIS 2.18.16 64 bit standalone su Windows 7 SP1 64 bit.

Ho installato per la prima volta il plugin go2streetview v. 7.4 dal
repository ufficiale: appare una finestra con l'errore "The plugin is
broken, Python said: No module named resources_rc"; il plugin viene
disattivato e provando ad attivarlo il pannello dei messaggi di log riporta:

**************
Couldn't load plugin go2streetview due to an error when calling its
classFactory() method 

ImportError: No module named resources_rc 
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 333,
in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/Andrea/.qgis2/python/plugins\go2streetview\__init__.py",
line 26, in classFactory
    from go2streetview import go2streetview
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:/Users/Andrea/.qgis2/python/plugins\go2streetview\go2streetview.py", line
33, in 
    from go2streetviewDialog import go2streetviewDialog,
dumWidget,snapshotLicenseDialog, infobox
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:/Users/Andrea/.qgis2/python/plugins\go2streetview\go2streetviewDialog.py",
line 37, in 
    os.path.dirname(__file__), 'ui_go2streetview.ui'))
  File
"C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\PyQt4\uic\__init__.py",
line 213, in loadUiType
    exec(code_string.getvalue(), ui_globals)
  File "", line 217, in 
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named resources_rc


Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit
(AMD64)] 
QGIS version: 2.18.16 Las Palmas, d473c3071a 
**************

Se sostituisco il contenuto della directory
.qgis2\python\plugins\go2streetview con quello contenuto nel file
https://github.com/enricofer/go2streetview/archive/v7.4.zip il pannello dei
messaggi di log riporta:

**************
Couldn't load plugin go2streetview due to an error when calling its
classFactory() method 

ImportError: No module named resources_rc 
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 333,
in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/Andrea/.qgis2/python/plugins\go2streetview\__init__.py",
line 26, in classFactory
    from go2streetview import go2streetview
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:/Users/Andrea/.qgis2/python/plugins\go2streetview\go2streetview.py", line
33, in 
    from go2streetviewDialog import go2streetviewDialog,
dumWidget,snapshotLicenseDialog, infobox
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:/Users/Andrea/.qgis2/python/plugins\go2streetview\go2streetviewDialog.py",
line 47, in 
    os.path.dirname(__file__), 'ui_go2streetviewDum.ui'))
  File
"C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\PyQt4\uic\__init__.py",
line 213, in loadUiType
    exec(code_string.getvalue(), ui_globals)
  File "", line 71, in 
  File "C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named resources_rc


Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit
(AMD64)] 
QGIS version: 2.18.16 Las Palmas, d473c3071a 
**************

Se sostituisco il contenuto della directory
.qgis2\python\plugins\go2streetview con quello contenuto in
https://plugins.qgis.org/plugins/go2streetview/version/7.3/go2streetview-7.3.zip
il plugin viene caricato correttamente e funziona (a parte il fatto che non
visualizza le immagini bing bird's eye ma solo google street view).



-----
Andrea Giudiceandrea
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html


Maggiori informazioni sulla lista QGIS-it-user