Public bug reported:

Hello,

right after installing the package the attempt to use the program on the
CLI causes a traceback:

```
$ apt update && apt install snmpsim
$ snmpsimd -h
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pysnmp/smi/builder.py", line 18, in 
<module>
    PY_MAGIC_NUMBER = importlib.util.MAGIC_NUMBER
                      ^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'util'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pysnmp/smi/builder.py", line 23, in 
<module>
    raise ImportError()
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/snmpsimd", line 23, in <module>
    from pysnmp.entity import engine, config
  File "/usr/lib/python3/dist-packages/pysnmp/entity/engine.py", line 12, in 
<module>
    from pysnmp.proto.rfc3412 import MsgAndPduDispatcher
  File "/usr/lib/python3/dist-packages/pysnmp/proto/rfc3412.py", line 10, in 
<module>
    from pysnmp.smi import builder, instrum
  File "/usr/lib/python3/dist-packages/pysnmp/smi/builder.py", line 26, in 
<module>
    import imp
ModuleNotFoundError: No module named 'imp'
```

I was able to reproduce this on my local machine and in a docker image.

** Affects: snmpsim (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2103721

Title:
  ModuleNotFoundError raised

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snmpsim/+bug/2103721/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to