#1 Thu 18 January 2018 18:06
- agone
- Participant occasionnel
- Date d'inscription: 2 Sep 2015
- Messages: 35
QGIS 2.18.15/Python: modules ?
Bonjour,
Depuis de longs mois je rencontre des problèmes avec les modules python et l'intégration avec QGIS.
Je suis sous QGIS 2.18.15 et osX 10.12.6
Les dernières mises à jour n'ont pas réglé les problèmes et même aggraver les choses.
L'utilisation de modules est impossible, certaines commandes ne fonctionne pas et Qspatialite est inutilisable. C'est donc assez embêtant.
Qu'en pensez vous?
Un exemple de code erreur:
Code:
2018-01-18T16:08:04 1 Traceback (most recent call last): File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/arthur/.qgis2/python/plugins/OSMtools/__init__.py", line 34, in classFactory from .osm_tools import OSMtools File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/OSMtools/osm_tools.py", line 37, in <module> import osm_tools_access File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/OSMtools/osm_tools_access.py", line 15, in <module> import requests File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named requests 2018-01-18T16:08:04 1 Traceback (most recent call last): File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/__init__.py", line 57, in classFactory from resource_sharing.plugin import Plugin File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/plugin.py", line 27, in <module> from gui.resource_sharing_dialog import ResourceSharingDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/gui/resource_sharing_dialog.py", line 39, in <module> from resource_sharing.gui.manage_dialog import ManageRepositoryDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/gui/manage_dialog.py", line 28, in <module> from resource_sharing.utilities import ui_path, qgis_version File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/utilities.py", line 9, in <module> import jinja2 File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named jinja2 2018-01-18T16:08:07 1 Traceback (most recent call last): File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/__init__.py", line 29, in classFactory from MetaSearch.plugin import MetaSearchPlugin File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/plugin.py", line 33, in <module> from MetaSearch.dialogs.maindialog import MetaSearchDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/dialogs/maindialog.py", line 43, in <module> from owslib.csw import CatalogueServiceWeb File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/owslib/csw.py", line 27, in <module> from owslib.util import OrderedDict File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/owslib/util.py", line 35, in <module> import requests File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named requests
Hors ligne
#2 Fri 19 January 2018 06:59
Re: QGIS 2.18.15/Python: modules ?
D'après les messages d'erreurs, il y a des modules Python non trouvés (requests et jinja2) dont certains plugins ont besoin (qgis_resource_sharing, Metasearch, OSMTools).
Tu peux les installer à la main avec pip :
Code:
pip install jinja2 pip install requests
Hors ligne
#3 Fri 19 January 2018 09:46
- agone
- Participant occasionnel
- Date d'inscription: 2 Sep 2015
- Messages: 35
Re: QGIS 2.18.15/Python: modules ?
Bonjour,
Je viens de réaliser l'installation des modules indiqués via le terminal mais j'obtiens toujours plusieurs erreurs
Code:
2018-01-19T09:45:27 1 warning:/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py:81: DeprecationWarning: Converters and adapters are deprecated. Please use only supported SQLite types. Any type mapping should happen in layer above this module. register_adapter(datetime.date, adapt_date) traceback: File "<string>", line 1, in <module> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/__init__.py", line 57, in classFactory from resource_sharing.plugin import Plugin File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/plugin.py", line 27, in <module> from gui.resource_sharing_dialog import ResourceSharingDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/gui/resource_sharing_dialog.py", line 40, in <module> from resource_sharing.repository_manager import RepositoryManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/repository_manager.py", line 12, in <module> from resource_sharing.collection_manager import CollectionManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/collection_manager.py", line 19, in <module> from resource_sharing.resource_handler import BaseResourceHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/__init__.py", line 4, in <module> from processing_handler import ProcessingScriptHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/processing_handler.py", line 6, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 29, in <module> from processing.tools.general import * # NOQA File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 31, in <module> from processing.core.Processing import Processing File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 42, in <module> from processing.script.ScriptUtils import ScriptUtils File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptUtils.py", line 30, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptAlgorithm.py", line 33, in <module> from processing.core.GeoAlgorithm import GeoAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/GeoAlgorithm.py", line 41, in <module> from processing.core.parameters import ParameterRaster, ParameterVector, ParameterMultipleInput, ParameterTable, Parameter File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/parameters.py", line 32, in <module> from processing.tools.vector import resolveFieldIndex File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/vector.py", line 47, in <module> from processing.tools import dataobjects, spatialite, postgis File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/spatialite.py", line 29, in <module> from pyspatialite import dbapi2 as sqlite File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py", line 86, in <module> register_adapters_and_converters() 2018-01-19T09:45:27 1 warning:/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py:82: DeprecationWarning: Converters and adapters are deprecated. Please use only supported SQLite types. Any type mapping should happen in layer above this module. register_adapter(datetime.datetime, adapt_datetime) traceback: File "<string>", line 1, in <module> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/__init__.py", line 57, in classFactory from resource_sharing.plugin import Plugin File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/plugin.py", line 27, in <module> from gui.resource_sharing_dialog import ResourceSharingDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/gui/resource_sharing_dialog.py", line 40, in <module> from resource_sharing.repository_manager import RepositoryManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/repository_manager.py", line 12, in <module> from resource_sharing.collection_manager import CollectionManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/collection_manager.py", line 19, in <module> from resource_sharing.resource_handler import BaseResourceHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/__init__.py", line 4, in <module> from processing_handler import ProcessingScriptHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/processing_handler.py", line 6, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 29, in <module> from processing.tools.general import * # NOQA File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 31, in <module> from processing.core.Processing import Processing File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 42, in <module> from processing.script.ScriptUtils import ScriptUtils File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptUtils.py", line 30, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptAlgorithm.py", line 33, in <module> from processing.core.GeoAlgorithm import GeoAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/GeoAlgorithm.py", line 41, in <module> from processing.core.parameters import ParameterRaster, ParameterVector, ParameterMultipleInput, ParameterTable, Parameter File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/parameters.py", line 32, in <module> from processing.tools.vector import resolveFieldIndex File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/vector.py", line 47, in <module> from processing.tools import dataobjects, spatialite, postgis File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/spatialite.py", line 29, in <module> from pyspatialite import dbapi2 as sqlite File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py", line 86, in <module> register_adapters_and_converters() 2018-01-19T09:45:27 1 warning:/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py:83: DeprecationWarning: Converters and adapters are deprecated. Please use only supported SQLite types. Any type mapping should happen in layer above this module. register_converter("date", convert_date) traceback: File "<string>", line 1, in <module> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/__init__.py", line 57, in classFactory from resource_sharing.plugin import Plugin File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/plugin.py", line 27, in <module> from gui.resource_sharing_dialog import ResourceSharingDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/gui/resource_sharing_dialog.py", line 40, in <module> from resource_sharing.repository_manager import RepositoryManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/repository_manager.py", line 12, in <module> from resource_sharing.collection_manager import CollectionManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/collection_manager.py", line 19, in <module> from resource_sharing.resource_handler import BaseResourceHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/__init__.py", line 4, in <module> from processing_handler import ProcessingScriptHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/processing_handler.py", line 6, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 29, in <module> from processing.tools.general import * # NOQA File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 31, in <module> from processing.core.Processing import Processing File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 42, in <module> from processing.script.ScriptUtils import ScriptUtils File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptUtils.py", line 30, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptAlgorithm.py", line 33, in <module> from processing.core.GeoAlgorithm import GeoAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/GeoAlgorithm.py", line 41, in <module> from processing.core.parameters import ParameterRaster, ParameterVector, ParameterMultipleInput, ParameterTable, Parameter File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/parameters.py", line 32, in <module> from processing.tools.vector import resolveFieldIndex File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/vector.py", line 47, in <module> from processing.tools import dataobjects, spatialite, postgis File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/spatialite.py", line 29, in <module> from pyspatialite import dbapi2 as sqlite File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py", line 86, in <module> register_adapters_and_converters() 2018-01-19T09:45:27 1 warning:/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py:84: DeprecationWarning: Converters and adapters are deprecated. Please use only supported SQLite types. Any type mapping should happen in layer above this module. register_converter("timestamp", convert_timestamp) traceback: File "<string>", line 1, in <module> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/__init__.py", line 57, in classFactory from resource_sharing.plugin import Plugin File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/plugin.py", line 27, in <module> from gui.resource_sharing_dialog import ResourceSharingDialog File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/gui/resource_sharing_dialog.py", line 40, in <module> from resource_sharing.repository_manager import RepositoryManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/repository_manager.py", line 12, in <module> from resource_sharing.collection_manager import CollectionManager File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/collection_manager.py", line 19, in <module> from resource_sharing.resource_handler import BaseResourceHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/__init__.py", line 4, in <module> from processing_handler import ProcessingScriptHandler File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/arthur/.qgis2/python/plugins/qgis_resource_sharing/resource_sharing/resource_handler/processing_handler.py", line 6, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 29, in <module> from processing.tools.general import * # NOQA File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 31, in <module> from processing.core.Processing import Processing File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 42, in <module> from processing.script.ScriptUtils import ScriptUtils File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptUtils.py", line 30, in <module> from processing.script.ScriptAlgorithm import ScriptAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/script/ScriptAlgorithm.py", line 33, in <module> from processing.core.GeoAlgorithm import GeoAlgorithm File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/GeoAlgorithm.py", line 41, in <module> from processing.core.parameters import ParameterRaster, ParameterVector, ParameterMultipleInput, ParameterTable, Parameter File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/parameters.py", line 32, in <module> from processing.tools.vector import resolveFieldIndex File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/vector.py", line 47, in <module> from processing.tools import dataobjects, spatialite, postgis File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/spatialite.py", line 29, in <module> from pyspatialite import dbapi2 as sqlite File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7/pyspatialite/dbapi2.py", line 86, in <module> register_adapters_and_converters()
Hors ligne