'ProxmoxVmInfoAnsible' object has no attribute 'module' Proxmox with Ansible

I’m trying to use Ansible’s Proxmox collection but I’m running into an issue. When I run my playbook, I get the below

AttributeError: 'ProxmoxKvmAnsible' object has no attribute 'module'

The full traceback for it is:

Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-tmp-1753222641.933565-391060-173645953165216/AnsiballZ_proxmox_vm_info.py", line 107, in <module>
    _ansiballz_main()
  File "/root/.ansible/tmp/ansible-tmp-1753222641.933565-391060-173645953165216/AnsiballZ_proxmox_vm_info.py", line 99, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/root/.ansible/tmp/ansible-tmp-1753222641.933565-391060-173645953165216/AnsiballZ_proxmox_vm_info.py", line 47, in invoke_module
    runpy.run_module(mod_name='ansible_collections.community.proxmox.plugins.modules.proxmox_vm_info', init_globals=dict(_module_fqn='ansible_collections.community.proxmox.plugins.modules.proxmox_vm_info', _modlib_path=modlib_path),
  File "<frozen runpy>", line 226, in run_module
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/tmp/ansible_community.proxmox.proxmox_vm_info_payload_xyht9xy6/ansible_community.proxmox.proxmox_vm_info_payload.zip/ansible_collections/community/proxmox/plugins/modules/proxmox_vm_info.py", line 279, in <module>
  File "/tmp/ansible_community.proxmox.proxmox_vm_info_payload_xyht9xy6/ansible_community.proxmox.proxmox_vm_info_payload.zip/ansible_collections/community/proxmox/plugins/modules/proxmox_vm_info.py", line 249, in main
  File "/tmp/ansible_community.proxmox.proxmox_vm_info_payload_xyht9xy6/ansible_community.proxmox.proxmox_vm_info_payload.zip/ansible_collections/community/proxmox/plugins/module_utils/proxmox.py", line 81, in __init__

I’ve checked my versions and I’m running the Ansible core 2.18

root@xxxx:/usr/src/ansible/KAPS/playbook# ansible --version
ansible [core 2.18.7]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 13.3.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Ansible collections

# /root/.ansible/collections/ansible_collections
Collection                               Version
---------------------------------------- -------
community.general                        11.1.0
community.proxmox                        1.2.0

I’m running a very simple play to just get information and prove it works.

- name: List PX VMs
  community.proxmox.proxmox_vm_info:
    api_host: "192.168.xxx.xxx"
    api_user: "xxxx@pam"
    api_password: "xxxxxx"
    node: pve

I’m getting this on pretty much any proxmox collection I use. I’ve tried to create a fresh Ubuntu 24.04 image and install from scratch, but have the same issue.

Any assistance you can provide would be appreciated.

Quick link: Error: 'ProxmoxNodeInfoAnsible' object has no attribute 'module' · Issue #114 · ansible-collections/community.proxmox · GitHub - i.e. check your proxmoxer version.

I’m pretty confident this is the solution. Thanks, I thought I had been pretty thorough with my Google-fu. I’ll need to work through my options via that page.

root@pve:~# apt info python3-proxmoxer
Package: python3-proxmoxer
Version: 1.2.0-2
Priority: optional
Section: python
Source: proxmoxer
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Installed-Size: 63.5 kB
Depends: python3:any
Recommends: python3-requests, python3-paramiko
Homepage: https://github.com/proxmoxer/proxmoxer
Download-Size: 14.3 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.us.debian.org/debian bookworm/main amd64 Packages

Update: Since this is my own home, personal machine, I elected to try the nuclear option:

root@pve:~# pip install proxmoxer --break-system-packages --upgrade --force
Collecting proxmoxer
  Using cached proxmoxer-2.2.0-py3-none-any.whl (19 kB)
Installing collected packages: proxmoxer
  Attempting uninstall: proxmoxer
    Found existing installation: proxmoxer 2.2.0
    Uninstalling proxmoxer-2.2.0:
      Successfully uninstalled proxmoxer-2.2.0
Successfully installed proxmoxer-2.2.0

It successfully updated proxmoxer to 2.2.0. The Ansible play then ran successfully.

ok: [proxmox] => {
    "changed": false,
    "invocation": {
        "module_args": {
            "api_host": "192.168.xxx.xxx",
            "api_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "api_port": null,
            "api_token_id": null,
            "api_token_secret": null,
            "api_user": "root@pam",
            "validate_certs": false
        }
    },
    "proxmox_nodes": [
        {
            "cpu": 0.121803684355238,
            "disk": 40024866816,
            "id": "node/pve",
            "level": "",
            "maxcpu": 4,
            "maxdisk": 71243653120,
            "maxmem": 16711643136,
            "mem": 13722595328,
            "node": "pve",
            "ssl_fingerprint": xxxredactedxxx,
            "status": "online",
            "type": "node",
            "uptime": 12529773
        }
    ]
}

PLAY RECAP ******************************************************************************************
proxmox                    : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0