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.

version 0.3.1 is not compatible with DRF 3.8 and produces ImportError

See original GitHub issue

The version 0.3.1 is not compatible with DRF 3.8. It seems that the master is, but the latest provided release to PyPI apparently not.

It produces an import error in the 0.3.1 code

Error:

  ...
  File ".../site-packages/rest_framework_extensions/routers.py", line 7, in <module>
    from rest_framework.routers import (
ImportError: cannot import name 'replace_methodname'

Culprit code of 0.3.1

# -*- coding: utf-8 -*-
from distutils.version import StrictVersion
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import NoReverseMatch

import rest_framework
from rest_framework.routers import (
    DefaultRouter,
    SimpleRouter,
    Route,
    replace_methodname,
    ^^^^^^^^^^^^^^^^^^^
)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

4reactions
brysoncommented, Aug 1, 2018

Can you add instructions for installing from git to the README at least?

3reactions
auvipycommented, Sep 6, 2018

i have emailed the original author for a new pypi release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Current DRF-YASG version is not compatible with drf ... - GitHub
I have been facing an issue with drf-yasg==1.23.1 after the release of latest djangorestframework==3.14.0 . They have removed the support for ...
Read more >
DRF ImportError: cannot import name 'action' on v3.8.2
My virtual environment and docker container were not using the same django rest framework version. I had to ssh into my docker container...
Read more >
mypy-django/Lobby - Gitter
Hello everyone! I have a problem. I am working on a drf project and using InteliJ. I also tried using PyCharm. The problem...
Read more >
DRF ImportError: cannot import name 'action' on v3.8.2-django
I'm running v 3.8.2 of DRF. I'm wondering if docker has anything to do with it. Maybe the interpreter is trying to use/find...
Read more >
graphene-django-extras - PyPI
Changed dependency of DRF to 3.6.4 on setup.py file, to avoid an import error produced by some changes in new version of DRF=3.7.0...
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