3
我開始使用Python API的Dropbox,我已經複製了第一個例子,但我得到一個錯誤AttributeError的:「模塊」對象有沒有屬性「客戶」蟒蛇的Dropbox API
import dropbox
# Get your app key and secret from the Dropbox developer website
app_key = 'MY_APP_KEY'
app_secret = 'MY_APP_SECRET'
flow = dropbox.client.DropboxOAuth2FlowNoRedirect(app_key, app_secret)
保管箱的對象沒有客戶端屬性,但它是相同的文檔代碼。
回溯
/usr/bin/python2.7 /home/user/PycharmProjects/api/dropbox.py
Traceback (most recent call last):
File "/home/user/PycharmProjects/api/dropbox.py", line 3, in <module>
import dropbox
File "/home/user/PycharmProjects/api/dropbox.py", line 9, in <module>
flow = dropbox.client.DropboxOAuth2FlowNoRedirect(app_key, app_secret)
AttributeError: 'module' object has no attribute 'client'
我想查看文檔。有鏈接? – Kevin
你能給我們完整的追溯?你的腳本有沒有機會調用'dropbox.py'? –
https://www.dropbox.com/developers/core/start/python – AFS