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

AttributeError: module 'kmod' has no attribute 'Kmod'

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0.beta
    • python-kmod
    • No
    • Moderate
    • rhel-sst-storage-io
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

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

       

      # rpm -q python3-kmod
      python3-kmod-0.9.2-5.el10.x86_64
      
      Following the readme in /usr/share/doc/python3-kmod/README, do
      
      >>> import kmod
      >>> km = kmod.Kmod()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      AttributeError: module 'kmod' has no attribute 'Kmod'

       

       

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

        >>> import kmod
        >>> km = kmod.Kmod()
        >>> [(m.name, m.size) for m in km.loaded()]
        [(u'nfs', 407706),
         (u'nfs_acl', 12741)
         ...
         (u'virtio_blk', 17549)]
        >>> km.modprobe("btrfs")
        >>> km.rmmod("btrfs")
      

      Actual results

      AttributeError: module 'kmod' has no attribute 'Kmod'

              mlombard@redhat.com Maurizio Lombardi
              rhn-support-zguo Zhaojuan Guo
              Maurizio Lombardi Maurizio Lombardi
              Zhaojuan Guo Zhaojuan Guo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: