[QGIS-it-user] QGIS 3 - errore Python

Salvatore Larosa lrssvtml a gmail.com
Mar 27 Feb 2018 09:53:01 PST


Il 27 Feb 2018 17:56, "Leonardo Donnini" <ldonnini a bonibit.com> ha scritto:

scusate per il ritardo che mi sono dovuto allontanare ..

ecco il log degli errori Python :

2018-02-27T17:41:56 WARNING Traceback (most recent call last):

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 336, in
startPlugin

plugins[packageName] = package.classFactory(iface)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\__init__.py", line
29, in classFactory

from MetaSearch.plugin import MetaSearchPlugin

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\plugin.py", line
34, in <module>

from MetaSearch.dialogs.maindialog import MetaSearchDialog

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\dialogs\maindialog.py",
line 46, in <module>

from owslib.csw import CatalogueServiceWeb # spellok

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

ImportError: bad magic number in 'owslib': b'\x03\xf3\r\n'



2018-02-27T17:41:57 WARNING Traceback (most recent call last):

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 311, in
loadPlugin

__import__(packageName)

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\__init__.py", line
29, in <module>

from processing.tools.general import * # NOQA

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\general.py",
line 39, in <module>

from processing.core.Processing import Processing

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\Processing.py",
line 57, in <module>

from processing.algs.qgis.QgisAlgorithmProvider import
QgisAlgorithmProvider # NOQA

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\QgisAlgorithmProvider.py",
line 41, in <module>

from .QgisAlgorithm import QgisAlgorithm

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\QgisAlgorithm.py",
line 30, in <module>

from processing.algs.help import shortHelp

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\help\__init__.py",
line 28, in <module>

import yaml

File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 664, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

ImportError: bad magic number in 'yaml': b'\x03\xf3\r\n'


Credo un problema con i file python compilati (*.pyc).

Prova ad eliminare tutti i file con estensione *.pyc che trovi in queste
due cartelle:
C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\help\
C:/OSGEO4~1/apps/qgis/./python/plugins\MetaSearch\dialogs\

Se dopo aver fatto questa pulizia l'errore si ripresenta potrebbe essere
necessario
fare pulizia in altre cartelle o sottocartelle.

Vediamo se è possibile evitare di rimuovere completamente la cartella
OSGEO4W.

Facci sapere.
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.osgeo.org/pipermail/qgis-it-user/attachments/20180227/f027c070/attachment-0001.html>


Maggiori informazioni sulla lista QGIS-it-user