Google アナリティクス API からデータを抽出してみてください。コードは昨日まで正常に機能していました。現在、これらの警告が debug.log に表示されています。
WARNING:oauth2client.contrib.locked_file:Could not acquire lock <PATH> in 0 seconds
DEBUG:googleapiclient.discovery_cache.file_cache:Could not obtain a lock for the cache file.
INFO:googleapiclient.discovery:URL being requested: GET https://www.googleapis.com/analytics/v3/data/ga?sort=-ga%3Avisits&max-results=10&dimensions=ga%3Amedium&start-date=2016-05-10&start-index=1&ids=ga%3A57752509&metrics=ga%3Avisits&alt=json&end-date=2016-06-09
私はコードを何も変更しませんでした。このメソッドを実行しようとすると、問題が発生します。
def access(self, profile_id):
self.profile_id = profile_id
self.argv = sys.argv
# Authenticate and construct service.
self.service, flags = sample_tools.init(
self.argv, 'analytics', 'v3', __doc__, __file__,
scope='https://www.googleapis.com/auth/analytics.readonly')