pip install -e does not always install the correct isort version
See original GitHub issuepip install -e .["dev"]
make quality
Output
black --check --line-length 119 --target-version py35 examples templates tests src utils
All done! ✨ 🍰 ✨
306 files would be left unchanged.
isort --check-only --recursive examples templates tests src utils
ERROR: /Users/shleifer/transformers_fork/examples/benchmarking/plot_csv_file.py Imports are incorrectly sorted.
ERROR: /Users/shleifer/transformers_fork/templates/adding_a_new_example_script/run_xxx.py Imports are incorrectly sorted.
ERROR: /Users/shleifer/transformers_fork/templates/adding_a_new_example_script/utils_xxx.py Imports are incorrectly sorted.
ERROR: /Users/shleifer/transformers_fork/src/transformers/__init__.py Imports are incorrectly sorted.
make: *** [quality] Error 1
relevant packages:
flake8==3.8.1
isort==4.3.21
black==19.10b0
Env:
- `transformers` version: 2.11.0
- Platform: Darwin-19.4.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Would also be good to add more verbose error messages if possible
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
isort · PyPI
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. It provides a command...
Read more >Pip Install not installing into correct directory? - Stack Overflow
The actual best way to use it is to install a local, non-root, python version. You just have to make sure that you...
Read more >How to install isort in Python | bobbyhadz
To install the isort module on Windows: Type CMD in the search bar and open the Command Prompt application. Type pip install isort...
Read more >Use isort to sort your Python module imports automatically
isort is a Python library to sort imports alphabetically, and automatically separated into sections and by type. Before we use isort to format...
Read more >Changelog - pip documentation v22.3.1
A package in a wheel is (by definition) not installed, and is not guaranteed to ... Disable location mismatch warnings on Python versions...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pip is confusing, but you technically have version “4.3.21” of isort if you install from the specified commit – but not the version “4.3.21”.
i.e. the version number in the setup.py of the package that you install from git is still the string “4.3.21”.
Do you see what I mean?
Yep