<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><BR><div><div dir="ltr"><p style="text-indent: 0px;">                       for include in elem.getiterator("include"):</p><p style="text-indent: 0px;">  </p><p style="text-indent: 0px;">                       traceback:  File "<string>", line 1, in <module></p><p style="text-indent: 0px;">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 271, in loadPlugin</p><p style="text-indent: 0px;">                     __import__(packageName)</p><p style="text-indent: 0px;">                        File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/Users/Terry/.qgis2/python/plugins\processing\__init__.py", line 29, in <module></p><p style="text-indent: 0px;">                           from processing.tools.general import *</p><p style="text-indent: 0px;">                         File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/Users/Terry/.qgis2/python/plugins\processing\tools\general.py", line 28, in <module></p><p style="text-indent: 0px;">                      from processing.core.Processing import Processing</p><p style="text-indent: 0px;">                      File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/Users/Terry/.qgis2/python/plugins\processing\core\Processing.py", line 42, in <module></p><p style="text-indent: 0px;">                            from processing.gui.MessageBarProgress import MessageBarProgress</p><p style="text-indent: 0px;">                       File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/Users/Terry/.qgis2/python/plugins\processing\gui\MessageBarProgress.py", line 34, in <module></p><p style="text-indent: 0px;">                     from processing.gui.MessageDialog import MessageDialog</p><p style="text-indent: 0px;">                         File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/Users/Terry/.qgis2/python/plugins\processing\gui\MessageDialog.py", line 38, in <module></p><p style="text-indent: 0px;">                          os.path.join(pluginPath, 'ui', 'DlgMessage.ui'))</p><p style="text-indent: 0px;">                       File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\__init__.py", line 210, in loadUiType</p><p style="text-indent: 0px;">                        winfo = compiler.UICompiler().compileUi(uifile, code_string, from_imports, resource_suffix)</p><p style="text-indent: 0px;">                    File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\Compiler\compiler.py", line 139, in compileUi</p><p style="text-indent: 0px;">                        w = self.parse(input_stream, resource_suffix)</p><p style="text-indent: 0px;">                          File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\uiparser.py", line 933, in parse</p><p style="text-indent: 0px;">                     actor(elem)</p><p style="text-indent: 0px;">                    File "C:\OSGEO4~1\apps\Python27\lib\site-packages\PyQt4\uic\uiparser.py", line 844, in readResources</p><p style="text-indent: 0px;">                     for include in elem.getiterator("include"):</p><p style="text-indent: 0px;">      </p><p style="text-indent: 0px;">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="text-indent: 0px;">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<br><p style="text-indent: 0px;">                 traceback:  File "<string>", line 1, in <module></p><p style="text-indent: 0px;">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 306, in startPlugin</p><p style="text-indent: 0px;">                            plugins[packageName] = package.classFactory(iface)</p><p style="text-indent: 0px;">                     File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\__init__.py", line 29, in classFactory</p><p style="text-indent: 0px;">                           from MetaSearch.plugin import MetaSearchPlugin</p><p style="text-indent: 0px;">                         File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\plugin.py", line 31, in <module></p><p style="text-indent: 0px;">                           from MetaSearch.dialogs.maindialog import MetaSearchDialog</p><p style="text-indent: 0px;">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\dialogs\maindialog.py", line 44, in <module></p><p style="text-indent: 0px;">                       from owslib.csw import CatalogueServiceWeb</p><p style="text-indent: 0px;">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/OSGEO4~1/apps/qgis/./python\owslib\csw.py", line 18, in <module></p><p style="text-indent: 0px;">                          from owslib.util import OrderedDict</p><p style="text-indent: 0px;">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:/OSGEO4~1/apps/qgis/./python\owslib\util.py", line 13, in <module></p><p style="text-indent: 0px;">                         import pytz</p><p style="text-indent: 0px;">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "C:\OSGEO4~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg\pytz\__init__.py", line 35, in <module></p><p style="text-indent: 0px;">                     from pkg_resources import resource_stream</p><p style="text-indent: 0px;">                      File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="text-indent: 0px;">                        mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="text-indent: 0px;">                          File "build\bdist.win-amd64\egg\pkg_resources.py", line 3027, in <module></p><p style="text-indent: 0px;">                          add_activation_listener(lambda dist: dist.activate())</p><p style="text-indent: 0px;">                          File "build\bdist.win-amd64\egg\pkg_resources.py", line 741, in subscribe</p><p style="text-indent: 0px;">                        callback(dist)</p><p style="text-indent: 0px;">                         File "build\bdist.win-amd64\egg\pkg_resources.py", line 3027, in <lambda></p><p style="text-indent: 0px;">                          add_activation_listener(lambda dist: dist.activate())</p><p style="text-indent: 0px;">                          File "build\bdist.win-amd64\egg\pkg_resources.py", line 2511, in activate</p><p style="text-indent: 0px;">                        self.insert_on(path)</p><p style="text-indent: 0px;">                   File "build\bdist.win-amd64\egg\pkg_resources.py", line 2608, in insert_on</p><p style="text-indent: 0px;">                       self.check_version_conflict()</p><p style="text-indent: 0px;">                          File "build\bdist.win-amd64\egg\pkg_resources.py", line 2650, in check_version_conflict</p><p style="text-indent: 0px;">                          " to sys.path" % (modname, fn, self.location),"</p> <br><p style="text-indent: 0px;"> </p><p style="text-indent: 0px;"><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="text-indent: 0px;">2016-02-19T21:20:44        0           Caricato Convertitore Dxf2Shp (Percorso: C:/OSGEO4~1/apps/qgis/plugins/dxf2shpconverterplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44         0           Caricato eVis (Percorso: C:/OSGEO4~1/apps/qgis/plugins/evis.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44   0           Caricato Georeferenziatore raster (GDAL) (Percorso: C:/OSGEO4~1/apps/qgis/plugins/georefplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44        0           Caricato Strumenti GPS (Percorso: C:/OSGEO4~1/apps/qgis/plugins/gpsimporterplugin.dll)</p><p style="text-indent: 0px;">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="text-indent: 0px;">2016-02-19T21:20:44   0         Caricato Plugin interpolazione (Percorso: C:/OSGEO4~1/apps/qgis/plugins/interpolationplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44   0    Caricato OfflineEditing (Percorso: C:/OSGEO4~1/apps/qgis/plugins/offlineeditingplugin.dll)</p><p style="text-indent: 0px;">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="text-indent: 0px;">2016-02-19T21:20:44          0    Caricato Plugin per l'analisi geomorfologica (Percorso: C:/OSGEO4~1/apps/qgis/plugins/rasterterrainplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44    0    Caricato Grafo strade (Percorso: C:/OSGEO4~1/apps/qgis/plugins/roadgraphplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44       0    Caricato Plugin di interrogazione spaziale (Percorso: C:/OSGEO4~1/apps/qgis/plugins/spatialqueryplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44       0    Caricato SPIT (Percorso: C:/OSGEO4~1/apps/qgis/plugins/spitplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44    0    Caricato Validatore topologico (Percorso: C:/OSGEO4~1/apps/qgis/plugins/topolplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:44          0    Caricato Plugin di statistica zonale (Percorso: C:/OSGEO4~1/apps/qgis/plugins/zonalstatisticsplugin.dll)</p><p style="text-indent: 0px;">2016-02-19T21:20:48          0    Caricato Processing (pacchetto: processing)</p><p style="text-indent: 0px;">2016-02-19T21:20:48       0        Caricato Viewshed Analysis (pacchetto: ViewshedAnalysis)</p><p style="text-indent: 0px;">2016-02-19T21:20:48         0    Caricato DB Manager (pacchetto: db_manager)</p><p style="text-indent: 0px;">2016-02-19T21:20:48       0    Caricato fTools (pacchetto: fTools)</p><p style="text-indent: 0px;">2016-02-19T21:20:48       0    Caricato GdalTools (pacchetto: GdalTools)</p><p style="text-indent: 0px;">2016-02-19T21:20:51         0        Caricato MetaSearch Catalogue Client (pacchetto: MetaSearch)</p><p style="text-indent: 0px;"> </p><p style="text-indent: 0px;">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="text-indent: 0px;">                        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></div>                                        </div></body>
</html>