Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: "Exception Value: SpooledTemporaryFile instance has no attribute __len__" #19

Closed
pkkid opened this issue Apr 27, 2015 · 2 comments
Closed
Labels
bug Bugs that need to get fixed.

Comments

@pkkid
Copy link
Contributor

pkkid commented Apr 27, 2015

I failed to run dbbackup, this exception keeps getting raised. It seems you are using SpooledTemporaryFile "file like objects" and pass them directly to dropbox client "put_file" method as "body" parameter, and it only supports file_like objects with "getvalue" method (like StringIO).
i'm attaching my "requirements.txt", the exception traceback, and my solution, which is to use cStringIO for the chunks.
if it makes any difference, this happens on my development setup, using sqlite. perhaps dropbox released a new package into pip that broke compatibility?
Thank you for this very useful module, Shlomi.

NOTE: Downgrading to dropbox==1.6.0 fixed the issue for me. It might be worth pinning requirements in setup.py, Michael.

@pkkid pkkid added bug Bugs that need to get fixed. and removed bitbucket labels Jun 1, 2015
@ZuluPro
Copy link
Contributor

ZuluPro commented Aug 27, 2015

The version of dropbox stored in PyPi is now outdated. It doesn't support Python3. A new version has been made by Dropbox here: https://github.com/dropbox/dropbox-sdk-python
It is supposed to be fully compatible with older versions and Python.

I've made a PR at django-storage-redux here: jschneier/django-storages#76
If it is merged, I think we'll drop dropbox code from dbbabckup and use Redux's one.

@ZuluPro
Copy link
Contributor

ZuluPro commented Sep 29, 2015

I think this issue may be closed with this PR #117

@ZuluPro ZuluPro closed this as completed Sep 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs that need to get fixed.
Projects
None yet
Development

No branches or pull requests

2 participants