-
Notifications
You must be signed in to change notification settings - Fork 311
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
from vmware.vapi.vsphere.client import create_vsphere_client #400
Comments
can you share the vsphere.py? |
You need to use Python 3.12 to get a Code to reproduce: from com.vmware.vapi.std.errors_client import Unauthorized
# or
from vmware.vapi.vsphere.client import create_vsphere_client I've narrowed the issue down to the class |
Thanks @Zer0x00 This is bug reproducible with python 3.12. This is due to handling of bug http://bugs.python.org/issue3665
|
The issue will be addressed in the next SDK release |
We are getting a lot of complaints about these warnings polluting our console outputs. I was also able to track at least one of the sources to The I urge the maintainers of this code to avoid using Note that this has been raising DeprecationWarning since Python 3.6, and was made a SyntaxWarning in 3.12 to try to get it addressed in code such as here. It will raise a SyntaxError in future versions of python. I did try to use
Links: |
The issue will be fixed in the next SDK release. |
Any ETA for this? Or will you wait until vSphere 8.0 U3 is released where AFAIR there's no official ETA? |
@mariolenz as a temporary workaround we automatically patch the file to silence the issue: Shell snippet:
And the
|
Describe the bug
I am getting the following message when running my python script:
the issue seems to be when importing the following:
from vmware.vapi.vsphere.client import create_vsphere_client
Reproduction steps
:1: SyntaxWarning: invalid escape sequence '['
...
Expected behavior
I should not expect to see :1: SyntaxWarning: invalid escape sequence '['
:1: SyntaxWarning: invalid escape sequence '['
Additional context
No response
The text was updated successfully, but these errors were encountered: