Buonasera Matteo e grazie per la risposta.
Ho installato tweepy con pip dal terminale, mi dice che la library è
installata. Non ne capisco quasi niente di librerie. Ho provato anche
con il comando 'import tweepy' dalla console python di Qgis ma mi dà
errore:
Traceback (most recent call last):
File
"/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/code.py", line 90, in
runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File
"/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'tweepy'
Message: 2
Date: Thu, 05 Mar 2020 22:04:49 +0100
From: gabriele.dipa...@uniba.it
To: qgis-it-user@lists.osgeo.org
Subject: [QGIS-it-user] Problemi nell'installazione del plugin Qweet
Message-ID:
<20200305220449.horde.eyj41mslo3iz3vcxl3kn...@webmail.uniba.it>
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Buonasera,
per favore sapete perché non riesco a installare il plugin Qweet, che
vorrei utilizzare per analizzare flussi di informazioni di Twitter?
Il plugin richiede l'installazione di una library che si chiama
tweepy. Cosa che ho fatto, ma questo è il messaggio che mi rimanda
Qgis (versione 3.12.0-București):
Grazie e saluti
Gabriele Di Palma
Could not import tweepy, install tweepy to use the plugin
Impossibile caricare il plugin 'qweetgis' a causa di un errore
chiamando il metodo classFactory()
ModuleNotFoundError: No module named 'tweepy'
Traceback (most recent call last):
File
"/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/qweetgis/__init__.py",
line
35, in classFactory
from .search.main import ThreadingMaster
File
"/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/qweetgis/search/main.py",
line 48, in
from ..authentication.credentials_validator import CredentialsValidator
File
"/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/qweetgis/authentication/credentials_validator.py", line
3,
in
from ..authentication.mod_tweepy import TestTweetsAuthHandler
File
"/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins/qweetgis/authentication/mod_tweepy.py", line
3,
in
import tweepy
File
"/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'tweepy'
Versione Python: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1
(clang-1001.0.46.3)]
Versione di QGIS: 3.12.0-București București, 409bcf8eaa
Percorso Python:
/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python
/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python
/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.12.app/Contents/MacOS/../Resources/python/plugins
/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages
/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7
/Applications/QGIS3.12.app/Contents/Resources/python
/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/geos
/Applications/QGIS3.12.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
/Users/alekseyvoda/Library/Application
Support/QGIS/QGIS3/profiles/default/python
------------------------------
Message: 3
Date: Fri, 6 Mar 2020 08:14:06 +0100
From: matteo <matteo.ghe...@gmail.com>
To: qgis-it-user@lists.osgeo.org
Subject: Re: [QGIS-it-user] Problemi nell'installazione del plugin
Qweet
Message-ID: <817bc142-8dbd-65fd-3662-1b2dddafb...@gmail.com>
Content-Type: text/plain; charset=utf-8
per favore sapete perché non riesco a installare il plugin Qweet, che
vorrei utilizzare per analizzare flussi di informazioni di Twitter?
Il plugin richiede l'installazione di una library che si chiama tweepy.
Cosa che ho fatto, ma questo è il messaggio che mi rimanda Qgis
(versione 3.12.0-București):
come hai installato tweetpy? tramite la OSGEO Shell?
può capitare che installi una libreria, ma per python 2 o in un altro
"ambiente" python che QGIS non vede.
Matteo
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user