Re: Error importing dropbox_account module

208 views
Skip to first unread message

Massimo Di Pierro

unread,
Oct 7, 2012, 10:42:22 AM10/7/12
to web...@googlegroups.com
You need to install:

https://github.com/enginous/python-dropbox

On Sunday, 7 October 2012 06:17:20 UTC-5, rogier wrote:

L.S.


On both my pythonanywhere and my local web2py instance I seem to be unable to import the dropbox module from gluon.

When incorporating this code in db.py
from gluon.contrib.login_methods.dropbox_account import use_dropbox
use_janrain(auth,filename='private/dropbox.key')
mydropbox = auth.settings.login_form

my application issues me a ticket stating:
<type 'exceptions.ImportError'> No module named gluon.contrib.login_methods.dropbox_account

and trying a plain import in my local python console results in :
ImportError: No module named dropbox

The dropbox_account files (py and pyc) are present in the appropriate folder, so what am I doing wrong?

kind regards
Rogier

rogier

unread,
Oct 7, 2012, 3:08:22 PM10/7/12
to web...@googlegroups.com
That indeed solved the problem.
Thank you for the very quick response!

Kind Regards
Rogier

Mika Sjöman

unread,
May 29, 2013, 2:29:56 PM5/29/13
to web...@googlegroups.com
a tip would be to include that reference into the documentation where you present the Dropbox API

http://www.web2py.com/books/default/chapter/29/14#Dropbox-API

Found it with a google search, but still :)

cheers
Reply all
Reply to author
Forward
0 new messages