Bug 2382630 - mibdump command fails on rocky linux 10
Summary: mibdump command fails on rocky linux 10
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-smi
Version: epel10
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-22 15:02 UTC by Conor Lennon
Modified: 2025-07-22 15:02 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Conor Lennon 2025-07-22 15:02:39 UTC
Description of problem:
mibdump command does not work

Version-Release number of selected component (if applicable):
Rocky Linux 10
EPEL 10.0

How reproducible:
100%

Steps to Reproduce:
1. yum install epel-release
2. yum install python3-smi
3. mibdump

Actual results:
$ mibdump
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pysmi/searcher/pyfile.py", line 17, in <module>
    SOURCE_SUFFIXES = importlib.machinery.SOURCE_SUFFIXES
                      ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'machinery'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pysmi/searcher/pyfile.py", line 21, in <module>
    raise ImportError()
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/mibdump", line 5, in <module>
    from pysmi.scripts.mibdump import start
  File "/usr/lib/python3.12/site-packages/pysmi/scripts/mibdump.py", line 15, in <module>
    from pysmi.searcher import (
  File "/usr/lib/python3.12/site-packages/pysmi/searcher/__init__.py", line 7, in <module>
    from pysmi.searcher.pyfile import PyFileSearcher
  File "/usr/lib/python3.12/site-packages/pysmi/searcher/pyfile.py", line 24, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'


Expected results:
$ mibdump
ERROR: MIB modules names not specified
Usage: /usr/bin/mibdump [--help]
      [--version]
      [--quiet]
      [--debug=<all|borrower|codegen|compiler|grammar|lexer|parser|reader|searcher|writer>]
      [--mib-source=<URI>]
      [--mib-searcher=<PATH|PACKAGE>]
      [--mib-stub=<MIB-NAME>]
      [--mib-borrower=<PATH>]
      [--destination-format=<FORMAT>]
      [--destination-directory=<DIRECTORY>]
      [--cache-directory=<DIRECTORY>]
      [--disable-fuzzy-source]
      [--no-dependencies]
      [--no-python-compile]
      [--python-optimization-level]
      [--ignore-errors]
      [--build-index]
      [--rebuild]
      [--dry-run]
      [--no-mib-writes]
      [--generate-mib-texts]
      [--keep-texts-layout]
      <MIB-NAME> [MIB-NAME [...]]]
Where:
    URI      - file, zip, http, https, ftp, sftp schemes are supported. 
               Use @mib@ placeholder token in URI to refer directly to
               the required MIB module when source does not support
               directory listing (e.g. HTTP).
    FORMAT   - pysnmp, json, null


Additional info:


Note You need to log in before you can comment on or make changes to this bug.