Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tweepy' has no attribute 'StreamListener' #6

Open
waxogawa opened this issue Dec 6, 2021 · 0 comments
Open

Comments

@waxogawa
Copy link

waxogawa commented Dec 6, 2021

At first, sorry for my poor English (cuz I mainly use Japanese).
I can import tweepy completely, but I can not install plugin Qweetgis in QGIS "Manage and install plugin" panel.
other plugin is work correctly. how should I do to fix it? please help me.

error message in below.

Couldn't load plugin 'qweetgis' due to an error when calling its classFactory() method 

AttributeError: module 'tweepy' has no attribute 'StreamListener' 
Traceback (most recent call last):
  File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qweetgis/__init__.py", line 35, in classFactory
    from .search.main import ThreadingMaster
  File "/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/user/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.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/user/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.16.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 793, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qweetgis/authentication/mod_tweepy.py", line 69, in 
    class BaseStreamListener(tweepy.StreamListener):
AttributeError: module 'tweepy' has no attribute 'StreamListener'


Python version: 3.9.4 (v3.9.4:1f2e3088f3, Apr  4 2021, 12:32:44) [Clang 6.0 (clang-600.0.57)] 
QGIS version: 3.16.8-Hannover Hannover, exported 

Python Path:
/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python
/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.16.app/Contents/MacOS/../Resources/python/plugins
/Library/Frameworks/SQLite3.framework/Versions/G/Python/3.9
/ /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
/Library/Frameworks/Python.framework/Versions/3.9/lib/python39.zip
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
/Users/user/Library/Application Support/QGIS/QGIS3/profiles/default/python

tweepy is working in python console on QGIS like below.

スクリーンショット 2021-12-07 5 31 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant