Skip to content

ImportError when run test #77

@rcy17

Description

@rcy17

Environment

  • Python 3.7
  • Django 3.0.3
  • django-thumbnails 0.2.2

Problem

When I try to run test code:

`which django-admin.py` test thumbnails --settings=thumbnails.tests.settings --pythonpath=.

Exception is raised that ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/home/holder/repo/dyf_api/venv/lib/python3.7/site-packages/django/utils/encoding.py), which, I believe, is caused by an old version of django.

Suggestion

After searching some information, I find some a similar issue in other packages about django, which says after a special version of django, method python_2_unicode_compatible is moved to six, so I think maybe you can update this path.

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