0
我正嘗試使用Google服務設置OAuth。下面的例子here,我使用的是:Google OAuth AttributeError:「'模塊'對象沒有任何屬性'docs'」
try:
from xml.etree import ElementTree
except ImportError:
from elementtree import ElementTree
import gdata.calendar.data
import gdata.calendar.client
import gdata.acl.data
import gdata
import atom
import getopt
import sys
import string
import time
CONSUMER_KEY = "xxx"
CONSUMER_SECRET = "xxx"
TOKEN = "xxx"
TOKEN_SECRET = "xxx"
client = gdata.docs.client.DocsClient(source='xxx')
和Python拋出AttributeError: "'module' object has no attribute 'docs'"
當它試圖創建客戶端。
什麼是你正在使用的import語句? – icktoofay
@icktoofay添加到原文,謝謝 – Dan