0

我正在尝试运行此程序,但收到此错误:

python questions_app.py
Traceback (most recent call last):
  File "questions_app.py", line 8, in <module>
    from filter_daemon import *
  File "/home/mona/danac/queshuns/filter_daemon.py", line 5, in <module>
    from twython import TwythonStreamer
  File "/usr/local/lib/python2.7/dist-packages/twython/__init__.py", line 23, in <module>
    from .api import Twython
  File "/usr/local/lib/python2.7/dist-packages/twython/api.py", line 14, in <module>
    from requests_oauthlib import OAuth1, OAuth2
  File "/usr/local/lib/python2.7/dist-packages/requests_oauthlib/__init__.py", line 3, in <module>
    from .oauth2_auth import OAuth2
  File "/usr/local/lib/python2.7/dist-packages/requests_oauthlib/oauth2_auth.py", line 2, in <module>
    from oauthlib.oauth2 import WebApplicationClient, InsecureTransportError
ImportError: cannot import name WebApplicationClient

有哪些可能的选择来解决它?我正在使用 Ubuntu 13.04 和 Python 2.7。

4

1 回答 1

1

好像你没有 oauthlib。

pip install oauthlib
于 2013-10-10T08:05:26.433 回答