<p dir="ltr">Ciao,<br>
per favore puoi girare questa tua richiesta sulla mailing list di QGIS Italia ? guarda qui : <a href="http://www.QGIS.it" target="_top" rel="nofollow" link="external">www.QGIS.it</a> </p>
<p dir="ltr">Saluti !</p>
<div class="gmail_quote">Il 19/feb/2016 22:18, "terry cusanno [via Gfoss -- Geographic Free and Open Source Software - Italian mailing list]" <<a href="/user/SendEmail.jtp?type=node&node=7595513&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> ha scritto:<br type="attribution"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        


<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">                          for include in elem.getiterator("include"):</p><p style="margin:0px;text-indent:0px">  </p><p style="margin:0px;text-indent:0px">                     traceback:  File "<string>", line 1, in <module></p><p style="margin:0px;text-indent:0px">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 271, in loadPlugin</p><p style="margin:0px;text-indent:0px">                            __import__(packageName)</p><p style="margin:0px;text-indent:0px">                       File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/Users/Terry/.qgis2/python/plugins\processing\__init__.py", line 29, in <module></p><p style="margin:0px;text-indent:0px">                          from processing.tools.general import *</p><p style="margin:0px;text-indent:0px">                        File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/Users/Terry/.qgis2/python/plugins\processing\tools\general.py", line 28, in <module></p><p style="margin:0px;text-indent:0px">                     from processing.core.Processing import Processing</p><p style="margin:0px;text-indent:0px">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/Users/Terry/.qgis2/python/plugins\processing\core\Processing.py", line 42, in <module></p><p style="margin:0px;text-indent:0px">                           from processing.gui.MessageBarProgress import MessageBarProgress</p><p style="margin:0px;text-indent:0px">                      File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/Users/Terry/.qgis2/python/plugins\processing\gui\MessageBarProgress.py", line 34, in <module></p><p style="margin:0px;text-indent:0px">                            from processing.gui.MessageDialog import MessageDialog</p><p style="margin:0px;text-indent:0px">                        File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/Users/Terry/.qgis2/python/plugins\processing\gui\MessageDialog.py", line 38, in <module></p><p style="margin:0px;text-indent:0px">                         os.path.join(pluginPath, 'ui', 'DlgMessage.ui'))</p><p style="margin:0px;text-indent:0px">                      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">                       winfo = compiler.UICompiler().compileUi(uifile, code_string, from_imports, resource_suffix)</p><p style="margin:0px;text-indent:0px">                   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">                       w = self.parse(input_stream, resource_suffix)</p><p style="margin:0px;text-indent:0px">                         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">                            actor(elem)</p><p style="margin:0px;text-indent:0px">                   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">                            for include in elem.getiterator("include"):</p><p style="margin:0px;text-indent:0px">     </p><p style="margin:0px;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="margin:0px;text-indent:0px">                      mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<br><p style="margin:0px;text-indent:0px">                        traceback:  File "<string>", line 1, in <module></p><p style="margin:0px;text-indent:0px">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 306, in startPlugin</p><p style="margin:0px;text-indent:0px">                           plugins[packageName] = package.classFactory(iface)</p><p style="margin:0px;text-indent:0px">                    File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\__init__.py", line 29, in classFactory</p><p style="margin:0px;text-indent:0px">                          from MetaSearch.plugin import MetaSearchPlugin</p><p style="margin:0px;text-indent:0px">                        File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\plugin.py", line 31, in <module></p><p style="margin:0px;text-indent:0px">                          from MetaSearch.dialogs.maindialog import MetaSearchDialog</p><p style="margin:0px;text-indent:0px">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\dialogs\maindialog.py", line 44, in <module></p><p style="margin:0px;text-indent:0px">                      from owslib.csw import CatalogueServiceWeb</p><p style="margin:0px;text-indent:0px">                    File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/OSGEO4~1/apps/qgis/./python\owslib\csw.py", line 18, in <module></p><p style="margin:0px;text-indent:0px">                         from owslib.util import OrderedDict</p><p style="margin:0px;text-indent:0px">                   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "C:/OSGEO4~1/apps/qgis/./python\owslib\util.py", line 13, in <module></p><p style="margin:0px;text-indent:0px">                        import pytz</p><p style="margin:0px;text-indent:0px">                   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;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="margin:0px;text-indent:0px">                            from pkg_resources import resource_stream</p><p style="margin:0px;text-indent:0px">                     File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import</p><p style="margin:0px;text-indent:0px">                       mod = _builtin_import(name, globals, locals, fromlist, level)</p><p style="margin:0px;text-indent:0px">                         File "build\bdist.win-amd64\egg\pkg_resources.py", line 3027, in <module></p><p style="margin:0px;text-indent:0px">                         add_activation_listener(lambda dist: dist.activate())</p><p style="margin:0px;text-indent:0px">                         File "build\bdist.win-amd64\egg\pkg_resources.py", line 741, in subscribe</p><p style="margin:0px;text-indent:0px">                       callback(dist)</p><p style="margin:0px;text-indent:0px">                        File "build\bdist.win-amd64\egg\pkg_resources.py", line 3027, in <lambda></p><p style="margin:0px;text-indent:0px">                         add_activation_listener(lambda dist: dist.activate())</p><p style="margin:0px;text-indent:0px">                         File "build\bdist.win-amd64\egg\pkg_resources.py", line 2511, in activate</p><p style="margin:0px;text-indent:0px">                       self.insert_on(path)</p><p style="margin:0px;text-indent:0px">                          File "build\bdist.win-amd64\egg\pkg_resources.py", line 2608, in insert_on</p><p style="margin:0px;text-indent:0px">                      self.check_version_conflict()</p><p style="margin:0px;text-indent:0px">                         File "build\bdist.win-amd64\egg\pkg_resources.py", line 2650, in check_version_conflict</p><p style="margin:0px;text-indent:0px">                         " to sys.path" % (modname, fn, self.location),"</p> <br><p style="margin:0px;text-indent:0px"> </p><p style="margin:0px;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="margin:0px;text-indent:0px">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">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">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">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">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">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">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">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">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">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">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">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">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">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">2016-02-19T21:20:48     0    Caricato Processing (pacchetto: processing)</p><p style="margin:0px;text-indent:0px">2016-02-19T21:20:48          0        Caricato Viewshed Analysis (pacchetto: ViewshedAnalysis)</p><p style="margin:0px;text-indent:0px">2016-02-19T21:20:48        0    Caricato DB Manager (pacchetto: db_manager)</p><p style="margin:0px;text-indent:0px">2016-02-19T21:20:48          0    Caricato fTools (pacchetto: fTools)</p><p style="margin:0px;text-indent:0px">2016-02-19T21:20:48          0    Caricato GdalTools (pacchetto: GdalTools)</p><p style="margin:0px;text-indent:0px">2016-02-19T21:20:51    0        Caricato MetaSearch Catalogue Client (pacchetto: MetaSearch)</p><p style="margin:0px;text-indent:0px"> </p><p style="margin:0px;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="margin:0px;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>
<br>_______________________________________________
<br><a href="http:///user/SendEmail.jtp?type=node&node=7595512&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss" rel="nofollow" link="external" target="_blank">http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss</a><br>Questa e' una lista di discussione pubblica aperta a tutti.
<br>I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.
<br>808 iscritti al 30.01.2015

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/Viewshed-analysis-Plugin-e-ultime-versioni-di-QGIS-tp7595512.html" target="_blank" rel="nofollow" link="external">http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/Viewshed-analysis-Plugin-e-ultime-versioni-di-QGIS-tp7595512.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Gfoss -- Geographic Free and Open Source Software - Italian mailing list, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/Viewshed-analysis-Plugin-e-ultime-versioni-di-QGIS-tp7595512p7595513.html">Re: Viewshed analysis Plugin e ultime versioni di QGIS</a><br/>
Sent from the <a href="http://gfoss-geographic-free-and-open-source-software-italian-mailing.3056002.n2.nabble.com/">Gfoss -- Geographic Free and Open Source Software - Italian mailing list mailing list archive</a> at Nabble.com.<br/>