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

Suppress the warnings about python3-apt not being installed #1019

Closed
quba42 opened this issue Feb 26, 2024 · 0 comments · Fixed by #1020
Closed

Suppress the warnings about python3-apt not being installed #1019

quba42 opened this issue Feb 26, 2024 · 0 comments · Fixed by #1020
Labels
.bugfix CHANGES/<issue_number>.bugfix

Comments

@quba42
Copy link
Collaborator

quba42 commented Feb 26, 2024

Describe the bug
All non trivial syncs cause log warnings like the following:

“pulpcore-worker-4[59559]: /usr/lib/python3.9/site-packages/debian/deb822.py:716: UserWarning: Parsing of Deb822 data with python3-apt’s apt_pkg was requested but this package is not importable. Is python3-apt installed?

This is true but irrelevant, since we can't use python3-apt unless Pulp was installed on an APT based distribution.
It often leads to user confusion when users see the warning and think it is related to their problems (it never is).

To Reproduce
Sync any repo, check the logs.

Expected behavior
No warnings about things we expect to happen always!

@quba42 quba42 added the .bugfix CHANGES/<issue_number>.bugfix label Feb 26, 2024
quba42 added a commit to ATIX-AG/pulp_deb that referenced this issue Feb 26, 2024
closes pulp#1019

We no longer want to see warnings like the following in the log:

pulpcore-worker: /usr/lib/python3.9/site-packages/debian/deb822.py:716:
UserWarning: Parsing of Deb822 data with python3-apt’s apt_pkg was
requested but this package is not importable. Is python3-apt installed?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.bugfix CHANGES/<issue_number>.bugfix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant