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.

pip install -e does not always install the correct isort version

See original GitHub issue
pip 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
julien-ccommented, Jun 5, 2020

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?

0reactions
julien-ccommented, Jun 9, 2020

Yep

Read more comments on GitHub >

github_iconTop 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 >

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