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

Crashes with isort<5 #157

Closed
akaihola opened this issue Jul 8, 2021 · 0 comments · Fixed by #192
Closed

Crashes with isort<5 #157

akaihola opened this issue Jul 8, 2021 · 0 comments · Fixed by #192
Assignees
Labels
bug Something isn't working
Milestone

Comments

@akaihola
Copy link
Owner

akaihola commented Jul 8, 2021

$ pip install 'isort<5' darker==1.2.4
$ darker --isort .
Traceback (most recent call last):
  File "bin/darker", line 5, in <module>
    from darker.__main__ import main
  File "darker/__main__.py", line 23, in <module>
    from darker.import_sorting import apply_isort, isort
  File "darker/import_sorting.py", line 21, in <module>
    isort_code = getattr(isort, "code")
AttributeError: module 'isort' has no attribute 'code'
@akaihola akaihola self-assigned this Jul 8, 2021
@akaihola akaihola added the bug Something isn't working label Jul 8, 2021
@akaihola akaihola added this to the 1.3.0 milestone Jul 8, 2021
@akaihola akaihola modified the milestones: 1.3.0, 1.3.1 Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant