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.

Ignore commas in pip show, etc.

See original GitHub issue

What’s the problem this feature will solve? Currently on using pip show on a package with multiple dependencies they are listed comma separated, e.g.:

>pip show mayavi
Name: mayavi
Version: 4.6.0
Summary: UNKNOWN
Home-page: http://docs.enthought.com/mayavi/mayavi/
Author: Prabhu Ramachandran, et. al.
Author-email: prabhu@aero.iitb.ac.in
License: BSD
Location: c:\python36_64\lib\site-packages
Requires: apptools, envisage, numpy, pyface, pygments, traits, traitsui, vtk
Required-by:

But if, for example we wish to check the licence for all of the dependencies so copy the last line to pip show with:>pip show apptools, envisage, numpy, pyface, pygments, traits, traitsui, vtk it fails silently on everything but vtk. This could easily lead the user, especially if they are using a pipe to filter the licence lines and remove duplicates, to draw the wrong conclusion.

Describe the solution you’d like It the list processing for pip show and other commands were to add a strip of the comma character rather than the relying user understanding what happened an performing a manual edit then the results would be as intuitively expected.

In the real world example above stripping commas from the target list would have the same effect as >pip show apptools envisage numpy pyface pygments traits traitsui vtk

Alternative Solutions

Additional context

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
GadgetStevecommented, Aug 11, 2019

Added a new issue #6858 to separate the issues, and any PRs, as pointed out above by @chrahunt this is really a separate issue that has been about for a long time.

0reactions
GadgetStevecommented, Sep 16, 2019

Wondering about the scope of the required testing!

  1. Test that the desired change works in the specific expected place OR
  2. Test all of the places that it will result in a change of behavior, i.e. just about every pip command would be able to accept a comma space separated list as well as a space separated list.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Split string at commas except when in bracket environment
The (*SKIP)(*FAIL) verbs make the engine omit the whole matched value from the match buffer, thus, moving the index to the end of...
Read more >
Remove Commas from String Python - Linux Hint
In our first python program code, we use replace() method to eliminate all the commas (,) from a python string. The replace() command...
Read more >
Usage — pydocstyle 6.1.1 documentation
Options: --version show program's version number and exit -h, --help show ... of comma-separated error codes or prefixes). for example: --ignore=D101,D2 ...
Read more >
How to read a csv file with commas within a field using pyspark
How to handle comma in the column value of a CSV file while reading ... It clearly shows that in a CSV file,...
Read more >
pip
A program using PIP will accept input in two different ways. ... Programs may allow Fortran-style default input, in which a comma without...
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