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

StringIO import error #505

Open
robline opened this issue Jul 27, 2020 · 2 comments
Open

StringIO import error #505

robline opened this issue Jul 27, 2020 · 2 comments

Comments

@robline
Copy link

robline commented Jul 27, 2020

I cannot get imagekit to import StringIO. When I follow the suggestions in the doc in a shell, I get ModuleNotFoundError: No module named 'StringIO'. There is nothing in the docs about supported python versions. Is there an incompatibility with Python 3.7?

In [4]: from imagekit.models import ProcessedImageField                                                                                
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-10ab3692e0af> in <module>
----> 1 from imagekit.models import ProcessedImageField

~/.virtualenvs/myproject/lib/python3.7/site-packages/imagekit/models.py in <module>
      1 import os
      2 import datetime
----> 3 from StringIO import StringIO
      4 
      5 from django.core.files.base import ContentFile

ModuleNotFoundError: No module named 'StringIO'
@robline
Copy link
Author

robline commented Jul 27, 2020

It turns out to be a version issue. https://django-imagekit.readthedocs.io/en/latest/ lists 1.1.0 as the latest release.

@vstoykov
Copy link
Collaborator

The latest version of django-imagekit is 4.0.2. There is probably some problem with the autoupdate of the documentation in the read the docs. With using the latest version of django-imagekit everything works riht? If yes can you close the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants