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

Importing the dmidecode python module throws misleading errors

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.2.0.z
    • dmidecode
    • None
    • None
    • Low
    • rhel-sst-kernel-debug
    • ssg_core_kernel
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      Importing the dmidecode module to python give misleading error. Everything works, as the module is able to read dmidata correctly.

      [root@hostname] / $ python3
      Python 3.9.16 (main, May 29 2023, 00:00:00)
      [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import dmidecode

        • ERROR ** Failed to save log entry
          SMBIOS3: entry point at 0x68e39000
          >>> print(type(dmidecode.bios()))
          <class 'dict'>
          >>> quit()
        • COLLECTED WARNINGS **
          Wrong DMI structures count: 0 announced, only 77 decoded.
        • END OF WARNINGS **

      [root@hostname] / $ rpm -q python3
      python3-3.9.16-1.el9_2.1.x86_64
      [root@hostname] / $ rpm -q python3-dmidecode
      python3-dmidecode-3.12.3-2.el9.x86_64

      Please provide the package NVR for which bug is seen:

      python3-dmidecode-3.12.3-2.el9.x86_64

      python3-3.9.16-1.el9_2.1.x86_64

      How reproducible:

      Every Time

      Steps to reproduce

      1. Start python3
      2. Import dmidecode
      3. Observer error

      Expected results

      Importing the dmidecode module to python should only result in errors when something is wrong.

      Actual results

      Misleading errors when importing the dmidecode module in python3

              rh-ee-lichliu Lichen Liu
              rhn-support-zconnor Zachariah Connor
              Lichen Liu Lichen Liu
              Jeffrey Bastian Jeffrey Bastian
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: