You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/bin/isort", line 11, in
sys.exit(main())
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/main.py", line 953, in main
for sort_attempt in attempt_iterator:
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/main.py", line 947, in
for file_name in file_names
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/main.py", line 100, in sort_imports
**kwargs,
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/api.py", line 303, in sort_file
with io.File.read(filename) as source_file:
AttributeError: type object 'File' has no attribute 'read'
The text was updated successfully, but these errors were encountered:
This is a duplicate of: #1593 which is fixed in isort development branch and awaiting release by end of month. More details are on the linked ticket, but the TLDR is that it's caused by a bug in Python 3.6.0 - which has been fixed in Python itself within the 3.6 series so isn't caught by isort's CI/CD which can't reasonably test against all minor releases of Python
Traceback (most recent call last):
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/bin/isort", line 11, in
sys.exit(main())
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/main.py", line 953, in main
for sort_attempt in attempt_iterator:
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/main.py", line 947, in
for file_name in file_names
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/main.py", line 100, in sort_imports
**kwargs,
File "/Users/momo/.pyenv/versions/3.6.0/envs/mbtpy/lib/python3.6/site-packages/isort/api.py", line 303, in sort_file
with io.File.read(filename) as source_file:
AttributeError: type object 'File' has no attribute 'read'
The text was updated successfully, but these errors were encountered: