dropbox - Python - Import Client Module -


i new python. today trying connect raspberry pi dropbox. followed tutorial http://cttoronto.com/03/16/2013/raspberry-pi-dropbox-sync/. used cli_client.py example , inserted app ids etc.

import cmd import locale import os import pprint import shlex  dropbox import client, rest, session   app_key = "xxx" app_secret = "xxx"  access_type = "full dropbox"  sess = session.dropboxsession(app_key,app_secret,access_type)  request_token = sess.obtain_request_token()  url = sess.build_authorize_url(request_token) 

then tried executing script got following error (sudo python cli_client.py):

traceback (most recent call last):   file "cli_client.py", line 7, in <module>     dropbox import client, rest, session   file "/var/tmp/setuptools/dropbox-python-sdk-1.5.1/example/dropbox.py", line 7, in <module>     dropbox import client, rest, session importerror: cannot import name client 

what doing wrong ?

the script looking in "dropbox" module 'client' - can see error. either haven't installed or tutorial's wrong (yes, see below).

did make sure download dropbox module , install it. tutorial has typo in , should run:

wget https://www.dropbox.com/static/developers/dropbox-python-sdk-1.5.1.zip 

to download dropbox file , create module.

even easier install dropbox module using either easy_install or pip*. try following:

sudo pip install dropbox 

for extra-advanced usage, know virtualenv , virtualenv-wrapper don't install hundreds of modules on place... that's bit outside scope of question ;-)


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -