Problem solved. Thanks A minor point in the book. When it says Create a file called "yourapp/private/dropbox.key" and in it write
<APP_KEY>:<APP_SECERT>:app_folder It should maybe be made clear that app_folder should be literally 'app_folder'. I agree the lack of brackets suggests this, but I am sure that I am not the only one who would try and put the relevant application folder (in dropbox) there. Peter On Tuesday, 30 October 2012 03:23:00 UTC, Massimo Di Pierro wrote: > > I think I know what the problem is. I made a change in trunk. Can you > check if it solves it? > > On Monday, 29 October 2012 10:01:26 UTC-5, peter wrote: >> >> I tried the example in the book in 2.1.1 >> >> It logs in okay, but when I try >> >> >> stream = open('afile.txt','rb') >> mydropbox.put('destfile.txt',stream) >> >> I get a ticket >> >> 1. >> 2. >> 3. >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> 10. >> 11. >> 12. >> >> Traceback (most recent call last): >> File "C:\Users\Peter\web2pyp1\gluon\restricted.py", line 212, in restricted >> exec ccode in environment >> File >> "C:/Users/Peter/web2pyp1/applications/new_spin2/controllers/default.py" >> <http://127.0.0.1:8003/admin/default/edit/new_spin2/controllers/default.py>, >> line 658, in <module> >> File "C:\Users\Peter\web2pyp1\gluon\globals.py", line 188, in <lambda> >> self._caller = lambda f: f() >> File >> "C:/Users/Peter/web2pyp1/applications/new_spin2/controllers/default.py" >> <http://127.0.0.1:8003/admin/default/edit/new_spin2/controllers/default.py>, >> line 654, in test_dropbox1 >> mydropbox.put('destfile.txt',stream) >> File >> "C:\Users\Peter\web2pyp1\gluon\contrib\login_methods\dropbox_account.py", >> line 104, in put >> return json.loads(self.client.put_file(filename, file))['bytes'] >> AttributeError: 'DropboxAccount' object has no attribute 'client' >> >> >> >> Peter >> > --