<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Ciao a tutti,<BR>qualche giorno fa ho voluto testare il Plugin <em><strong>Viewshed analysis </strong></em>seguendo un tutorial in rete<em>; </em>premetto che sul mio portatile ho Windows10 e che avevo installato contemporaneamente Qgis 2.12.3 e Qgis 2.13...(a causa di un aggiornamento non voluto fatto qualche giorno fa). Inoltre ho una virtualbox su gui ho installato OSGEOLIVE 8. <BR>Nel tentativo di portare a termine l'esercizio correlato al plugin, dopo aver inserito tutti i dati richiesti veniva fuori un messaggio di errore:<BR> <BR><strong>ERRORE PYTHON</strong><BR>¡°UnicodeEncodeError: ¡®ascii¡¯ codec can¡¯t encode character u¡¯\xe0¡ä in position 36: ordinal not in range(128)<br> Traceback (most recent call last):<br>  File ¡°C:/Users/Terry/.qgis2/python/plugins\ViewshedAnalysis\viewshedanalysis.py¡±, line 161, in run<br>    outPath = ViewshedAnalysisDialog.returnOutputFile(self.dlg)<br>  File ¡°C:/Users/Terry/.qgis2/python/plugins\ViewshedAnalysis\viewshedanalysisdialog.py¡±, line 60, in returnOutputFile<br>    return str(l)<br> UnicodeEncodeError: ¡®ascii¡¯ codec can¡¯t encode character u¡¯\xe0¡ä in position 36: ordinal not in range(128)<BR>Versione Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]<br> Versione di QGIS: 2.12.3-Lyon Lyon, 99ac688¡å <BR> <BR>e inoltre si specificava che mancavano questi file: <strong>grassrasterprovider6.dll</strong>, <strong>grassprovider6.dll</strong>, <strong>grassplugin6.dll</strong>. <BR> <BR>Effettuando lo stesso test con QGIS 8.3 nella virtual box non si sono riscontrati problemi. <BR> <BR>Siccome qualcuno mi aveva detto che le nuove versioni di Qgis non sono cos¨¬ stabili ho fatto presente la cosa a coloro che hanno distribuito il tutorial e mi ¨¨ stato risposto che c'¨¨ pericolo di instabilit¨¤ se si mantengono sullo stesso PC versioni diverse di QGIS...(in effetti avrei dovuto provvedere prima a mantenerne una).<BR>Oggi ho disinstallato le ultime versioni con OSGEO4 setup, ho ripulito il PC (non ho riavviato per¨°...forse avrei dovuto), e ho installato solo Qgis 2.12.3  e GRASS 6.4.3 lasciando il resto inalterato.<BR> <BR>All'aperture di Qgis fra i messaggi ho trovato rispettivamente<BR> <BR><strong>AVVISI PYTHON</strong><BR><strong>"</strong>2016-02-19T22:01:57      1       warning:C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\uiparser.py:844: PendingDeprecationWarning: This method will be removed in future versions.  Use 'elem.iter()' or 'list(elem.iter())' instead.
<BR><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                         for include in elem.getiterator("include"):</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">  </p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                   traceback:  File "<string>", line 1, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 271, in loadPlugin</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                           __import__(packageName)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/Users/Terry/.qgis2/python/plugins\processing\__init__.py", line 29, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                         from processing.tools.general import *</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                       File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/Users/Terry/.qgis2/python/plugins\processing\tools\general.py", line 28, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                            from processing.core.Processing import Processing</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/Users/Terry/.qgis2/python/plugins\processing\core\Processing.py", line 42, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                          from processing.gui.MessageBarProgress import MessageBarProgress</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/Users/Terry/.qgis2/python/plugins\processing\gui\MessageBarProgress.py", line 34, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                           from processing.gui.MessageDialog import MessageDialog</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                       File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/Users/Terry/.qgis2/python/plugins\processing\gui\MessageDialog.py", line 38, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        os.path.join(pluginPath, 'ui', 'DlgMessage.ui'))</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                     File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\__init__.py", line 210, in loadUiType</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      winfo = compiler.UICompiler().compileUi(uifile, code_string, from_imports, resource_suffix)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                          File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\Compiler\compiler.py", line 139, in compileUi</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      w = self.parse(input_stream, resource_suffix)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\uiparser.py", line 933, in parse</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                           actor(elem)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                          File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\uiparser.py", line 844, in readResources</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                           for include in elem.getiterator("include"):</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">    </p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T22:01:58    1       warning:C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py:572: UserWarning: Module owslib was already imported from C:/OSGEO4~1/apps/qgis/./python\owslib\__init__.pyc, but c:\osgeo4~1\apps\python27\lib\site-packages\owslib-0.7.2-py2.7.egg is being added to sys.path</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                     mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<BR><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                       traceback:  File "<string>", line 1, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 306, in startPlugin</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                          plugins[packageName] = package.classFactory(iface)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                   File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\__init__.py", line 29, in classFactory</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                         from MetaSearch.plugin import MetaSearchPlugin</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                       File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\plugin.py", line 31, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                         from MetaSearch.dialogs.maindialog import MetaSearchDialog</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\dialogs\maindialog.py", line 44, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                     from owslib.csw import CatalogueServiceWeb</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/OSGEO4~1/apps/qgis/./python\owslib\csw.py", line 18, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        from owslib.util import OrderedDict</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                          File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:/OSGEO4~1/apps/qgis/./python\owslib\util.py", line 13, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                       import pytz</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                          File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "C:\OSGEO4~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg\pytz\__init__.py", line 35, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                           from pkg_resources import resource_stream</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "build\bdist.win-amd64\egg\pkg_resources.py", line 3027, in <module></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        add_activation_listener(lambda dist: dist.activate())</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "build\bdist.win-amd64\egg\pkg_resources.py", line 741, in subscribe</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      callback(dist)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                       File "build\bdist.win-amd64\egg\pkg_resources.py", line 3027, in <lambda></p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        add_activation_listener(lambda dist: dist.activate())</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "build\bdist.win-amd64\egg\pkg_resources.py", line 2511, in activate</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      self.insert_on(path)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                         File "build\bdist.win-amd64\egg\pkg_resources.py", line 2608, in insert_on</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                     self.check_version_conflict()</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        File "build\bdist.win-amd64\egg\pkg_resources.py", line 2650, in check_version_conflict</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                        " to sys.path" % (modname, fn, self.location),"</p> <BR><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;"> </p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;"><strong>PLUGIN</strong></p>2016-02-19T21:20:44         0          Caricato Cattura coordinate (Percorso: C:/OSGEO4~1/apps/qgis/plugins/coordinatecaptureplugin.dll)
<BR><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44      0           Caricato Convertitore Dxf2Shp (Percorso: C:/OSGEO4~1/apps/qgis/plugins/dxf2shpconverterplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44       0           Caricato eVis (Percorso: C:/OSGEO4~1/apps/qgis/plugins/evis.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44         0           Caricato Georeferenziatore raster (GDAL) (Percorso: C:/OSGEO4~1/apps/qgis/plugins/georefplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44      0           Caricato Strumenti GPS (Percorso: C:/OSGEO4~1/apps/qgis/plugins/gpsimporterplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44   1           Impossibile caricare C:/OSGEO4~1/apps/qgis/plugins/heatmapplugin.dll (Motivo: Cannot load library C:/OSGEO4~1/apps/qgis/plugins/heatmapplugin.dll: Impossibile trovare la procedura specificata.</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44         0         Caricato Plugin interpolazione (Percorso: C:/OSGEO4~1/apps/qgis/plugins/interpolationplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44   0    Caricato OfflineEditing (Percorso: C:/OSGEO4~1/apps/qgis/plugins/offlineeditingplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44     1         Impossibile caricare C:/OSGEO4~1/apps/qgis/plugins/oracleplugin.dll (Motivo: Cannot load library C:/OSGEO4~1/apps/qgis/plugins/oracleplugin.dll: Impossibile trovare la procedura specificata.)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44        0    Caricato Plugin per l'analisi geomorfologica (Percorso: C:/OSGEO4~1/apps/qgis/plugins/rasterterrainplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44          0    Caricato Grafo strade (Percorso: C:/OSGEO4~1/apps/qgis/plugins/roadgraphplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44     0    Caricato Plugin di interrogazione spaziale (Percorso: C:/OSGEO4~1/apps/qgis/plugins/spatialqueryplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44     0    Caricato SPIT (Percorso: C:/OSGEO4~1/apps/qgis/plugins/spitplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44          0    Caricato Validatore topologico (Percorso: C:/OSGEO4~1/apps/qgis/plugins/topolplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:44        0    Caricato Plugin di statistica zonale (Percorso: C:/OSGEO4~1/apps/qgis/plugins/zonalstatisticsplugin.dll)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:48        0    Caricato Processing (pacchetto: processing)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:48     0        Caricato Viewshed Analysis (pacchetto: ViewshedAnalysis)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:48       0    Caricato DB Manager (pacchetto: db_manager)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:48     0    Caricato fTools (pacchetto: fTools)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:48     0    Caricato GdalTools (pacchetto: GdalTools)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">2016-02-19T21:20:51       0        Caricato MetaSearch Catalogue Client (pacchetto: MetaSearch)</p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;"> </p><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">Se poi rieffettuo il test per il plugin il messaggio di errore stavolta ¨¨:</p> <BR><strong>ERRORE PYTHON</strong><BR>"2016-02-19T21:43:17  1       Traceback (most recent call last): <BR><p style="margin: 0px; text-indent: 0px; -qt-block-indent: 0;">                      File "C:/Users/Terry/.qgis2/python/plugins\ViewshedAnalysis\viewshedanalysis.py", line 194, in run</p>z_obs_field, z_target_field, curv, refraction)<BR>File "C:/Users/Terry/.qgis2/python/plugins\ViewshedAnalysis\doViewshed.py", line 403, in Viewshed<BR>RasterPath= str(QgsMapLayerRegistry.instance().mapLayer(Raster_layer).dataProvider().dataSourceUri())<BR>UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 36: ordinal not in range(128)"<BR> <BR>Ammettendo che non ci capisco granch¨¦ di errori sapete spiegarmi se ci sono uno o pi¨´ problemi diverse in concomitanza, se si tratta di un unico problema, da cosa tutto ci¨° dipende e comunque come potrei risolvere?<BR> <BR>Grazie mille e scusate la lungaggine.<BR> <BR>Buona serata a tutti<BR> <BR>Terry<BR>                                         </div></body>
</html>