Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-19861

sanity test_850: Ubuntu24.04 cannot import name 'CLoader' from 'yaml'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      This issue was created by maloo for Andreas Dilger <adilger@dilger.ca>

      This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/5945000a-6d46-42b6-acda-bf8c419ba2aa

      test_850 failed with the following error:

      File "/usr/bin/lljobstat", line 16, in 
          from yaml import CLoader as Loader
      ImportError: cannot import name 'CLoader' from 'yaml' (/usr/local/lib/python3.12/dist-packages/yaml/__init__.py)
      failed to run lljobstat on living system
      

      Test session details:
      clients: https://build.whamcloud.com/job/lustre-reviews/121279 - 6.8.0-85-generic
      servers: https://build.whamcloud.com/job/lustre-reviews/121279 - 4.18.0-553.89.1.

      It looks like the Ubuntu does not have the CLoader package/library installed? The code looks like it will try to fall back to Loader, but I guess this is somehow not working.

      try:
          from yaml import CLoader as Loader
      except ImportError:
          from yaml import Loader
      

      VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
      sanity test_850 - failed to run lljobstat on living system

      Attachments

        Issue Links

          Activity

            People

              flei Feng Lei
              maloo Maloo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: