feelfree
feelfree

Reputation: 11773

dropbox object does not have Dropbox attribute in Python

I am now using Python to download files from Dropbox, and I following this tutorial. However, it did not succeed on the first two lines of codes:

import dropbox
dbx = dropbox.Dropbox('YOUR_ACCESS_TOKEN')

My Python complains that AttributeError: 'module' object has no attribute 'Dropbox' Any ideas?

Upvotes: 1

Views: 827

Answers (1)

feelfree
feelfree

Reputation: 11773

After careful examination, I found the reason is because I am using functions from dropbox-v2 while in my machine dropbox-v1 was installed.

Upvotes: 1

Related Questions