Hi all,
I am very new to both Python and Google APIs, so forgive me if my query is basic. I have been struggling with it for days now.
I want to get all top-level comments from a YouTube video. For this I am using the YouTube Data API. I have also created a server API developer key from Google Developers. I call the build() method as mentioned in the docs, to create a youtube data api service object:
from apiclient.discovery import build
youtube = build('youtube', 'v3', developerKey='my_developer_key')
However, I get the following error:
WARNING:root:No module named locked_file
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/googleapiclient/discovery_cache/__init__.py", line 38, in autodetect
from . import file_cache
File "build/bdist.linux-x86_64/egg/googleapiclient/discovery_cache/file_cache.py", line 32, in <module>
ImportError: No module named locked_file
Why is this problem coming and how do I solve it?
Thanks in advance,
Rohan Saxena.