Bug 2382630
| Summary: | mibdump command fails on rocky linux 10 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Conor Lennon <conorlennon222> |
| Component: | python-smi | Assignee: | Orphan Owner <extras-orphan> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel10 | CC: | extras-orphan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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: