Skip to content

pipx install pulp-cli[pygments] does not correctly install setuptools on Python 3.12 #865

@JeppeKlitgaard

Description

@JeppeKlitgaard

Summary

On an Ubuntu 22.04 server, installation via pipx does not work out of the box

Steps to reproduce

  1. pipx install pulp-cli[pygments]
  2. pulp

Gives

Traceback (most recent call last):
  File "/home/jkl/.local/bin/pulp", line 5, in <module>
    from pulp_cli import main
  File "/home/jkl/.local/share/pipx/venvs/pulp-cli/lib/python3.12/site-packages/pulp_cli/__init__.py", line 5, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Expected behavior

For pulp-cli to run

Pulp and pulp-cli version info

  • pulp3 command line interface, version 0.22.0

Fix

This can be manually fixed by issuing:

pipx inject pulp-cli[pygments] setuptools

Metadata

Metadata

Assignees

Labels

Triage-NeededNeeds to be reviewed at next pulp-cli mtgbugSomething isn't working (template-set)

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions