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

[python] Collect verbose output via pip #3922

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

sayan3296
Copy link
Contributor

@sayan3296 sayan3296 commented Feb 7, 2025

The idea is to be able to see the path where the module is installed. So I would prefer to having

# pip3.9 -v list installed
Package                         Version   Location                               Installer
------------------------------- --------- -------------------------------------- ---------
aiodns                          3.0.0     /usr/lib/python3.9/site-packages
aiofiles                        22.1.0    /usr/lib/python3.9/site-packages
aiohttp                         3.9.2     /usr/lib64/python3.9/site-packages

Over

# pip3.9 list installed
Package                         Version
------------------------------- ---------
aiodns                          3.0.0
aiofiles                        22.1.0
aiohttp                         3.9.2

to ease my troubleshooting of support-cases, where we suspect the module is being picked up from the wrong path.


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname [email protected]?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?
  • Are all passwords or private data gathered by this PR obfuscated?

@sayan3296
Copy link
Contributor Author

CC @pmoravec

Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-3922
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@sayan3296
Copy link
Contributor Author

One small thing here. I noticed that for Python 3.6 or before, the -v flag does not print the location of the module. It prints the output normally.
For python 3.8 and later, the -v flag shows the location as expected.

It's still better than nothing I guess.

@TurboTurtle
Copy link
Member

One small thing here. I noticed that for Python 3.6 or before, the -v flag does not print the location of the module. It prints the output normally. For python 3.8 and later, the -v flag shows the location as expected.

It's still better than nothing I guess.

Nothing to be done about that, I guess. At least 3.6 will be phasing out more quickly now with RHEL and other LTS distros.

@TurboTurtle TurboTurtle merged commit 9c4ce8a into sosreport:main Feb 8, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants