python - How do I import the Dropbox SDK into a Google App Engine application? -


i want line

import dropbox 

to work. downloaded python core api dropbox, , copied contents of zip file (otherwise working) app's folder. when run app, gives me following error:

error    2013-08-07 19:47:04,111 wsgi.py:219]  traceback (most recent call last): file "/home/myusername/downloads/google_appengine/google/appengine/runtime/wsgi.py", line 196, in handle handler = _config_handle.add_wsgi_middleware(self._loadhandler()) file "/home/myusername/downloads/google_appengine/google/appengine/runtime/wsgi.py", line 255, in _loadhandler handler = __import__(path[0]) file "/home/myusername/downloads/appname/appname.py", line 1, in <module> import dropbox file "/home/myusername/downloads/appname/dropbox/__init__.py", line 3, in <module> . import client, rest, session file "/home/myusername/downloads/appname/dropbox/client.py", line 14, in <module> .rest import errorresponse, restclient file "/home/myusername/downloads/appname/dropbox/rest.py", line 7, in <module> import pkg_resources importerror: no module named pkg_resources 

how resolve error?

as indicated link posted @tim dierks, can solve issue creating pkg_resouces module within dropbox folder contents

def resource_filename(*args):      cert_path =  '/path/to/trusted-certs.crt'     return cert_path 

as far can tell, pkg_resources needs 1 method returns path certificate. trusted-certs.crt should in dropbox source folder.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -