Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7509

dstat fails to run when account has anaconda/conda python environment setup: ModuleNotFoundError: No module named 'pcp'

    • pcp-6.1.1-1.el9
    • Minor
    • sst_pt_pcp
    • ssg_platform_tools
    • 10
    • 15
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Release Note Not Required

      Description of problem:

      A user can not run `dstat` when configured to use its own python installation, for example, from anaconda. The error received is:

      $ dstat
      Traceback (most recent call last):
      File "/usr/bin/dstat", line 30, in <module>
      from pcp import pmapi, pmconfig
      ModuleNotFoundError: No module named 'pcp'

      for some reason pmpython is not using platform python, but the user's local python

      $ which pmpython
      /usr/bin/pmpython
      $ pmpython
      Python 3.11.4 | packaged by conda-forge | (main, Jun 10 2023, 18:08:17) [GCC 12.2.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.

      Version-Release number of selected component (if applicable):

      pcp-system-tools-6.0.4-2.el9.x86_64

      How reproducible: 100%

      Steps to Reproduce:
      1. install anaconda python
      2. conda activate env
      3. dstat

            nathans@redhat.com Nathan Scott
            isu-akrherz Daryl Herzmann (Inactive)
            Nathan Scott Nathan Scott
            Jan Kurik Jan Kurik
            Jacob Valdez Jacob Valdez
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: