question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Django 1.11.2 incompatibility

See original GitHub issue

In the latest django version I get AttributeError from files.py:42:

self = <versatileimagefield.files.VersatileImageFileDescriptor object at 0x7fe54799ee80>, instance = None, owner = <class '__fake__.Collection'>

    def __get__(self, instance=None, owner=None):
        if instance is None:
            raise AttributeError(
                "The '%s' attribute can only be accessed from %s instances."
>               % (self.field.name, owner.__name__))
E           AttributeError: The 'background_image' attribute can only be accessed from Collection instances.

../../Envs/env11/lib/python3.5/site-packages/versatileimagefield/files.py:42: AttributeError

I think this might be similar to this issue

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
respondcreatecommented, Jun 13, 2017

Hey @fabiocaccamo and @szewczykmira !

Thanks for the reminder (got side-tracked this last week), I just released this fix in the 1.7.1 PyPI release. Here’s how to get it:

$ pip install --upgrade django-versatileimagefield==1.7.1
1reaction
szewczykmiracommented, Jun 13, 2017

@respondcreate Thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incompatible with Django 1.11.2 · Issue #178 - GitHub
When trying to upgrade to the newly released Django 1.11.2 from 1.11.1, my tests started failing, and the stack trace leads to:.
Read more >
Django 1.11 release notes
Welcome to Django 1.11! These release notes cover the new features, as well as some backwards incompatible changes you'll want to be aware...
Read more >
Release notes - Django documentation
Release notes for the official Django releases. Each release note will tell you what's new in each version, and will also describe any...
Read more >
FAQ: Installation | Django documentation
Django runs SQLite by default, which is included in Python installations. For a production environment, we recommend PostgreSQL; but we also officially support ......
Read more >
Django Deprecation Timeline
This document outlines when various pieces of Django will be removed or altered in a backward incompatible way, following their deprecation, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found