[QGIS-it-user] Qgis3 - KyngChaos

Salve
Ieri sera come da post precedente
<http://osgeo-org.1560.x6.nabble.com/QGIS-3-beta-Installazione-su-macOS-tt5356513.html&gt;
ho tentato vanamente di installare Qgis 3 eseguendo il porting con macports
<https://www.macports.org> . Questa mattina è stato inserita su KynChaos il
primo dgm della versione di Qgis3.0.1 per OSX.

Ho installato, ma quando avvio il programma appare schermata di errore e
un riquadro in cui sono appunto segnalati gli errori. Sapreste darmi qualche
info in merito? potrebbe essere causato dal porting?
Grazie

<http://osgeo-org.1560.x6.nabble.com/file/t382845/Schermata_2018-03-12_alle_16.png&gt;

*Tutto il contenuto del riquadro è :*

Impossibile caricare il plugin 'processing'

ModuleNotFoundError: No module named 'osgeo'
Traceback (most recent call last):
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 311, in
loadPlugin
    __import__(packageName)
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 664, in
_import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py",
line 28, in
    from processing.tools.dataobjects import * # NOQA
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 664, in
_import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/plugins/processing/tools/dataobjects.py",
line 51, in
    from processing.algs.gdal.GdalUtils import GdalUtils
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 664, in
_import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/plugins/processing/algs/gdal/GdalUtils.py",
line 35, in
    from osgeo import gdal
  File "/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 664, in
_import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'osgeo'

Versione Python: 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) [GCC 4.2.1
(Apple Inc. build 5666) (dot 3)]
Versione di QGIS: 3.0.0-Girona Girona, exported

Percorso Python:
/Applications/QGIS 3.app/Contents/MacOS/../Resources/python
/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python
/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS 3.app/Contents/MacOS/../Resources/python/plugins
/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python

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

Ciao,

···

appena disponibile posso capire che alcune cose non vanno, ma non è detto che potrebbe dipendere da un problema locale.

Intanto ti chiedo che versione di GDAL hai installato sul tuo sistema?
Se salti quel messaggio di errore, controlla la finestra di About QGIS cosa riporta come versione di GDAL?

2018-03-12 17:06 GMT+01:00 Tony75 <iperstatica@gmail.com>:

Salve
Ieri sera come da post precedente
<http://osgeo-org.1560.x6.nabble.com/QGIS-3-beta-Installazione-su-macOS-tt5356513.html>
ho tentato vanamente di installare Qgis 3 eseguendo il porting con macports
<https://www.macports.org> . Questa mattina è stato inserita su KynChaos il
primo dgm della versione di Qgis3.0.1 per OSX.

Ho installato, ma quando avvio il programma appare schermata di errore e
un riquadro in cui sono appunto segnalati gli errori. Sapreste darmi qualche
info in merito? potrebbe essere causato dal porting?
Grazie

<http://osgeo-org.1560.x6.nabble.com/file/t382845/Schermata_2018-03-12_alle_16.png>

Tutto il contenuto del riquadro è :

Impossibile caricare il plugin ‘processing’

ModuleNotFoundError: No module named ‘osgeo’
Traceback (most recent call last):
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/qgis/utils.py”, line 311, in
loadPlugin
import(packageName)
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/qgis/utils.py”, line 664, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/plugins/processing/init.py”,
line 28, in
from processing.tools.dataobjects import * # NOQA
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/qgis/utils.py”, line 664, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/plugins/processing/tools/dataobjects.py”,
line 51, in
from processing.algs.gdal.GdalUtils import GdalUtils
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/qgis/utils.py”, line 664, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/plugins/processing/algs/gdal/GdalUtils.py”,
line 35, in
from osgeo import gdal
File “/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/qgis/utils.py”, line 664, in
_import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named ‘osgeo’

Versione Python: 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) [GCC 4.2.1
(Apple Inc. build 5666) (dot 3)]
Versione di QGIS: 3.0.0-Girona Girona, exported

Percorso Python:
/Applications/QGIS 3.app/Contents/MacOS/…/Resources/python
/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python
/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS 3.app/Contents/MacOS/…/Resources/python/plugins
/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python


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


QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode

Ciao ho da poco installato la versione 3 su Mac OS 10.3.3, ho il solito tuo
problema, all'apertura di qgis durante la comparsa dell'immagine con il logo
del programma, compare una finestra con un errore " Impossibile caricare il
plugin 'processing"

Non sono un esperto di qgis, ma nel dmg di questa nuova versione, sono
presenti solo due .pkg, nelle versioni precedenti ce n'erano 4
-gdal complete
-Numpy
-matplotlin
-QGIS

nella versione 3 disponibile su KyngChaos ho trovato dentro il dmg di qgis
3.0.0-1
-gdal complete
-install qgis
poi ho scaricato a parte sempre sulla pagina di KyngChaos che Python 3.6.4
da installare prima di qgis

forse alcuni pacchetti sono ancora incompleti o bisogna scaricare/installare
pacchetti delle vecchie versioni non saprei, ho già fatto presente il
problema

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

ecco lo screen della finestra informazioni

<http://osgeo-org.1560.x6.nabble.com/file/t382845/Schermata_2018-03-12_alle_17.png&gt;

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

On Mon, Mar 12, 2018 at 5:52 PM, Tony75 <iperstatica@gmail.com> wrote:

ecco lo screen della finestra informazioni

<http://osgeo-org.1560.x6.nabble.com/file/t382845/
Schermata_2018-03-12_alle_17.png>

ok, potrebbe trattarsi che le librerie python delle GDAL non sono impostate
correttamente nel PYTHONPATH.
Se riesci ad aprire la Console python dimmi cosa stampa questo comando:

import sys
sys.path

--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode

credo anche io che siano le librerie
ecco il risultato dalla console

import.sys
Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/code.py",
line 64, in runsource
    code = self.compile(source, filename, symbol)
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py",
line 168, in __call__
    return _maybe_compile(self.compiler, source, filename, symbol)
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py",
line 99, in _maybe_compile
    raise err1
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py",
line 87, in _maybe_compile
    code1 = compiler(source + "\n", filename, symbol)
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py",
line 133, in __call__
    codeob = compile(source, filename, symbol, self.flags, 1)
  File "<input>", line 1
    import.sys
          ^
SyntaxError: invalid syntax
sys.path
Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/code.py",
line 91, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
NameError: name 'sys' is not defined

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

Attenzione, mi sembra di vedere che tu hai lanciato import.sys (nota il punto) ma il comando è senza punto.

Volevo vedere se nei path esiste il site-packages delle GDAL.

Riprova :slight_smile:

Il Lun 12 Mar 2018, 18:39 Tony75 <iperstatica@gmail.com> ha scritto:

credo anche io che siano le librerie
ecco il risultato dalla console

import.sys
Traceback (most recent call last):
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/code.py”,
line 64, in runsource
code = self.compile(source, filename, symbol)
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py”,
line 168, in call
return _maybe_compile(self.compiler, source, filename, symbol)
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py”,
line 99, in _maybe_compile
raise err1
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py”,
line 87, in _maybe_compile
code1 = compiler(source + “\n”, filename, symbol)
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codeop.py”,
line 133, in call
codeob = compile(source, filename, symbol, self.flags, 1)
File “”, line 1
import.sys
^
SyntaxError: invalid syntax
sys.path
Traceback (most recent call last):
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/code.py”,
line 91, in runcode
exec(code, self.locals)
File “”, line 1, in
NameError: name ‘sys’ is not defined


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


QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

ok
se metto importsys (senza il punto)
Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/code.py",
line 91, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
NameError: name 'importsys' is not defined

La PATH è corretta

sudo nano ~/.bash_profile

PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"

export PATH

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

Devi solo copiare e incollare i comandi che ti avevo dato :slight_smile:

È senza il punto ma con lo spazio!

Forza Tony!

Il Lun 12 Mar 2018, 19:16 Tony75 <iperstatica@gmail.com> ha scritto:

ok
se metto importsys (senza il punto)
Traceback (most recent call last):
File
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/code.py”,
line 91, in runcode
exec(code, self.locals)
File “”, line 1, in
NameError: name ‘importsys’ is not defined

La PATH è corretta

sudo nano ~/.bash_profile

PATH=“/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}”

export PATH


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


QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

A titolo informativo:
È importante installare prima Python 3, altrimenti i componenti Python
completi di GDAL non verranno installati

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Haha
Scusa, mi son fatto prendere dalla fretta.
Adesso non sono in casa. Più tardi verifico
Al più reinstallo.

Più tosto un modo per disintallare il tutto?
Linea di comando?

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

Ti ho risposto nell’altro post per Macports.

Se hai una buona App usa quella, altrimenti linea di comando.

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

ciao, ho provato a disinstallare tutto e ripetere l'installazione, prima ho
scaricato Python 3.7 l'ho installato e poi ho installato GDAL contenente nel
.dmg di qgis di KyngChaos e per ultimo qgis, adesso non appaio più
finestre di report errore all'apertura di qgis.

riscontro però altri problemi:

- se creo un nuovo shape file mi da errore:
messaggi di lo>OGR
2018-03-12T20:42:32 WARNING Errore nella creazione della sorgente dati OGR
prova.shp: Failed to create file prova.shp: Permission denied

messaggi di lo>processing

2018-03-12T20:43:15 WARNING Duplicate parameter coordinates registered for
alg v.net.visibility
2018-03-12T20:43:16 CRITICAL Problema con l'installazione di SAGA: SAGA non
trovato o non correttamente installato

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

ciao Salvatore scusa il ritardo
ecco il risultato

import sys
sys.path
['/Applications/QGIS 3.app/Contents/MacOS/../Resources/python',
'/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python',
'/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins', '/Applications/QGIS
3.app/Contents/MacOS/../Resources/python/plugins',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages',
'/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python']

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

Bene, mancano (o non sono linkati bene) i pacchetti python delle GDAL, il motivo dell’errore: ModuleNotFoundError: No module named ‘osgeo’

Ora bisogna capire perchè non vengono aggiunte al PYTHONPATH.

Ti trovi una cartella del tipo: /Library/Frameworks/GDAL.framework/Versions/<versione_gdal>/Python/3.6/site-packages ?
Spero di si.

Mi dici il contenuto del seguente file: /Library/Frameworks/GDAL.framework/Versions/<versione_gdal>/Resources/gdal-py3.6.pth

  • <versione_gdal> è la versione di GDAL installata sul tuo sistema, dovrebbe essere 2.2?!
···

On Mon, Mar 12, 2018 at 11:36 PM, Tony75 <iperstatica@gmail.com> wrote:

ciao Salvatore scusa il ritardo
ecco il risultato

import sys
sys.path
[‘/Applications/QGIS 3.app/Contents/MacOS/…/Resources/python’,
‘/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python’,
‘/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins’, ‘/Applications/QGIS
3.app/Contents/MacOS/…/Resources/python/plugins’,
‘/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip’,
‘/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6’,
‘/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload’,
‘/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages’,
‘/Users/Harlock/Library/Application
Support/QGIS/QGIS3/profiles/default/python’]


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


QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode

Eja, è la versione 2.2, però mi ritrovo anche 1.11 e la 2.1

<http://osgeo-org.1560.x6.nabble.com/file/t382845/Schermata_2018-03-13_alle_00.png&gt;

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

E vediamo cosa c’è dentro il file /Library/Frameworks/GDAL.

framework/Versions/2.2/Resources/gdal-py3.6.pth

Puoi incollare il contenuto qui?

Il Mar 13 Mar 2018, 00:25 Tony75 <iperstatica@gmail.com> ha scritto:

Eja, è la versione 2.2, però mi ritrovo anche 1.11 e la 2.1

<http://osgeo-org.1560.x6.nabble.com/file/t382845/Schermata_2018-03-13_alle_00.png>


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


QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

Salvatore scusa il ritardo
ecco il contenuto del file gdal-py3.6.pth

import sys;
sys.path.insert(0,'/Library/Frameworks/GDAL.framework/Versions/2.2/Python/3.6/site-packages')

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

On Tue, Mar 13, 2018 at 4:55 PM, Tony75 <iperstatica@gmail.com> wrote:

Salvatore scusa il ritardo
ecco il contenuto del file gdal-py3.6.pth

import sys;
sys.path.insert(0,'/Library/Frameworks/GDAL.framework/
Versions/2.2/Python/3.6/site-packages')

Corretto, allora fai un'ultima prova:

Reinstalla il pacchetto GDAL2.2.

--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode

adesso nessun errore, quindi era un problema della precedente installazione
delle librerie.

unico errore :

*errore inizializzazione GRASS: GRASS non trovato in
'/Users/Shared/unix/grass-qgis-yosemite/grass-7.2.2' (GISBASE), la sorgente
e il plugin non funzioneranno*.

ho poi provato a fare un merge di 4 file asc :

Input parameters:
{ 'INPUT' :
['/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_460.asc.zip','/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_461.asc.zip','/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_480.asc.zip','/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_481.asc.zip'],
'PCT' : False, 'SEPARATE' : False, 'OPTIONS' : '', 'DATA_TYPE' : 5, 'OUTPUT'
: '/Users/Harlock/Downloads/DTM10M/Merge/Pattada.asc' }

GDAL command:
gdal_merge.py -ot Float32 -of AAIGrid -o
/Users/Harlock/Downloads/DTM10M/Merge/Pattada.asc
/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_460.asc.zip
/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_461.asc.zip
/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_480.asc.zip
/vsizip//Users/Harlock/Downloads/DTM10M/ascii_50000_481.asc.zip
GDAL command output:
/bin/sh: gdal_merge.py: command not found
Execution completed in 0.04 seconds
Results:
{'OUTPUT': <QgsProcessingOutputLayerDefinition
{'sink':/Users/Harlock/Downloads/DTM10M/Merge/Pattada.asc, 'createOptions':
{'fileEncoding': 'System'}}>}

Caricamento layer
I seguenti layers non sono stati caricati correttamente
/Users/Harlock/Downloads/DTM10M/Merge/Pattada.asc
Puoi verificare il "Pannello dei messaggi" nella finestra principale di QGIS
per trovare maggiori informazioni circa l'esecuzione dell'algoritmo

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