Skip to content

StringIO import error #505

Open
Open
@robline

Description

@robline

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions