Fauzan Fauzan - 1 year ago 137
Python Question

pydrive: ImportError: cannot import name 'CredentialsFileSymbolicLinkError'

I was testing out pydrive module for python. On running the script named quick.py:

from pydrive.drive import GoogleAuth

gauth = GoogleAuth()

I get the following error:

Traceback (most recent call last):
File "quick.py", line 1, in <module>
from pydrive.drive import GoogleAuth
File "/home/fauzan/.local/lib/python3.5/site-packages/pydrive/drive.py", line 2, in <module>
from .files import GoogleDriveFile
File "/home/fauzan/.local/lib/python3.5/site-packages/pydrive/files.py", line 12, in <module>
from .auth import LoadAuth
File "/home/fauzan/.local/lib/python3.5/site-packages/pydrive/auth.py", line 15, in <module>
from oauth2client.file import CredentialsFileSymbolicLinkError
ImportError: cannot import name 'CredentialsFileSymbolicLinkError'

How to resolve this issue?

Answer Source

This was a bug due to the upgraded oath2client 4.0.0. The bug has been squashed and the updated pydrive package is live on PyPi.

pip install pydrive --upgrade

will solve the issue.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download