Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'module' object has no attribute 'client' #49

Open
millschristopherjohn opened this issue Jul 17, 2017 · 3 comments
Open

'module' object has no attribute 'client' #49

millschristopherjohn opened this issue Jul 17, 2017 · 3 comments

Comments

@millschristopherjohn
Copy link

millschristopherjohn commented Jul 17, 2017

Sorry for what is probably a silly mistake. Getting an attribute error (AttributeError: 'module' object has no attribute 'client') at the line: flow = dropbox.client.DropboxOAuth2FlowNoRedirect(APP_KEY, APP_SECRET)

First time doing this, so I used the APP_KEY and APP_SECRET from a randomly-named app I created ("in development" status). I already installed dropbox via pip. No other dropbox.py or anything like that sitting around. What's going on?

@millschristopherjohn
Copy link
Author

After browsing more, I'm guessing this is related to the API change?

@alaut
Copy link

alaut commented Aug 10, 2017

I have the same issue as well.

Traceback (most recent call last):
  File "restore.py", line 114, in <module>
    main()
  File "restore.py", line 109, in main
    client = login('token.dat')
  File "restore.py", line 42, in login
    access_token = authorize()
  File "restore.py", line 23, in authorize
    flow = dropbox.client.DropboxOAuth2FlowNoRedirect(APP_KEY, APP_SECRET)
AttributeError: 'module' object has no attribute 'client'

@millschristopherjohn
Copy link
Author

Discovered the problem was related to the API change. There's a partial fix from here: #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants