Yes I did install that, so it works perfectly normally 2 times out of 3. This is what is strange, the import works intermittently. I would have thought that the import would either work or would fail, not switch between the two randomly. Peter
On Monday, December 2, 2013 4:22:02 PM UTC, Massimo Di Pierro wrote: > > Did you install this? > https://www.dropbox.com/developers/core/sdks/python > > On Monday, 2 December 2013 09:56:30 UTC-6, Peter wrote: >> >> I have some code that writes a file to dropbox. >> >> It includes >> >> from dropbox import client, rest, session >> i >> >> when I run the save_file command from the browser the majority of the >> time it works fine and does what it is supposed to do. But about 1 in 3 >> times it comes up with a ticket >> >> File "/opt/web-apps/web2py/applications/new_spin2/controllers/default.py" >> <https://162.218.210.94/admin/default/edit/new_spin2/controllers/default.py>, >> line 591, in save_sqlite >> from dropbox import client, rest, session >> File "/opt/web-apps/web2py/gluon/custom_import.py", line 86, in >> custom_importer >> return base_importer(pname, globals, locals, fromlist, level) >> ImportError: No module named dropbox >> >> >> I can just sit there and get the same page to reload and arbitrarily it will >> work or fail. >> >> If I log on to the system with ssh, and run the same version of python and >> import dropbox it always imports fine, so it is only occasionally failing to >> import dropbox under web2py. >> >> Version 2.8.2-stable+timestamp.2013.11.28.13.54.07 >> (Running on Unknown, Python 2.6.8) >> >> running on centos 5 >> >> any ideas? >> >> Thanks >> >> Peter >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

