Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyvomi module failing in connect method #994

Closed
saranyasridharan opened this issue Nov 29, 2022 · 0 comments
Closed

Pyvomi module failing in connect method #994

saranyasridharan opened this issue Nov 29, 2022 · 0 comments
Assignees
Labels

Comments

@saranyasridharan
Copy link

saranyasridharan commented Nov 29, 2022

Describe the bug

while trying to connect to vcenter using pyvomi module, noticed the below issue.
class StubAdapterAccessorMixin has no attribute '__init__'
There is no init method found in this file

Solution:
It worked when I commented out the below line
https://github.com/vmware/pyvmomi/blob/master/pyVmomi/SoapAdapter.py#990
We need to remove it I believe

Reproduction steps

  1. Replace the hostname,username,password with proper values
  2. Run the below code
from pyVim.connect import SmartConnect
c = SmartConnect(host="hostname", user="username", pwd='password')
print(c.CurrentTime())

Expected behavior

vcenter connection should be established without throwing any error. As per the sample program, it should print current time after connecting to vcenter.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants