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

**URL:** <https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026>\
**Category:** Get Help\
**Tags:** proxmox, ubuntu\
**Created:** [July 23, 2025, 3:39pm UTC](https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026 "2025-07-23T15:39:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lochnivar](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lochnivar/32/9105_2.png) [@Lochnivar](https://forum.ansible.com/u/Lochnivar)\
**Post date:** [July 23, 2025, 3:39pm UTC](https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026/1 "2025-07-23T15:39:24Z")

</div>

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

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

```

The full traceback for it is:

```auto
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

```auto
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

```auto
# /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.

```auto
- 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.

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [July 23, 2025, 4:22pm UTC](https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026/2 "2025-07-23T16:22:28Z")

</div>

Quick link: [Error: 'ProxmoxNodeInfoAnsible' object has no attribute 'module' · Issue #114 · ansible-collections/community.proxmox · GitHub](https://github.com/ansible-collections/community.proxmox/issues/114) - i.e. check your `proxmoxer` version.

---

<div class="post-metadata">

**Author:** ![Lochnivar](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lochnivar/32/9105_2.png) [@Lochnivar](https://forum.ansible.com/u/Lochnivar)\
**Post date:** [July 23, 2025, 5:15pm UTC](https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026/3 "2025-07-23T17:15:47Z")

</div>

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.

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Lochnivar](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lochnivar/32/9105_2.png) [@Lochnivar](https://forum.ansible.com/u/Lochnivar)\
**Post date:** [July 23, 2025, 5:43pm UTC](https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026/4 "2025-07-23T17:43:04Z")

</div>

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

```auto
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.

```auto
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

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [August 22, 2025, 5:43pm UTC](https://forum.ansible.com/t/proxmoxvminfoansible-object-has-no-attribute-module-proxmox-with-ansible/44026/5 "2025-08-22T17:43:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
