pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

vmodl directory missing in v9.0.0.0

Open IvarVirusiim opened this issue 6 months ago • 4 comments

Describe the bug

When installing the pyvmomi package version 9.0.0.0, the vmodl directory doesn't come with it.

Repository structure:

Image

Structure locally:

Image

When importing:

Image

Reproduction steps

  1. Install latest pyvmomi
  2. Import something from vmodl
  3. Receive error message: "Cannot find reference 'vmodl' in 'init.py' "

Expected behavior

vmodl is imported without issues

Additional context

No response

IvarVirusiim avatar Jun 19 '25 04:06 IvarVirusiim

I was struck with this today when my playbooks stopped working over the US holiday.

I have reverted to 8.0.3.0.1.

@DanielDraganov

Solaris17 avatar Jun 20 '25 22:06 Solaris17

I was struck with this today when my playbooks stopped working over the US holiday.

I have reverted to 8.0.3.0.1.

@DanielDraganov

Hello. Could you elaborate on your scenario? The vmodl folder contains only type hints so it's interesting to find another use case.

DanielDraganov avatar Jun 23 '25 09:06 DanielDraganov

I was struck with this today when my playbooks stopped working over the US holiday. I have reverted to 8.0.3.0.1. @DanielDraganov

Hello. Could you elaborate on your scenario? The vmodl folder contains only type hints so it's interesting to find another use case.

Apologies I should have lead with that.

I can try and induce the specific error again in the next few days.

I have several playbooks used to move and manipulate custom workloads in vmware 7 u3.

  • Network connect/disconnect
  • CPU & RAM configuration
  • vMotion to and from specific compute hosts

All of this runs on Ansible Semaphore which uses Ansible version 2.18.1 (Current).

When attempting to run a playbook on 9.0.0.0 pyvmomi faults when attempting to use one of the modules.

Removing and rolling back to 8.0.3.0.1 restores usability immediately.

Solaris17 avatar Jun 23 '25 20:06 Solaris17

Got it. I don't think the issue is due to missing type hints. Since 9.0 is a major release, it introduced several breaking changes - rare, but you might’ve just hit one. When you get a chance, please share the error and traceback so we can confirm.

DanielDraganov avatar Jun 24 '25 06:06 DanielDraganov