pyvmomi
pyvmomi copied to clipboard
SoapAdapter / expected str instance, byte found
Hi, when trying to connect to a remote hosted vcenter v5.1 (OVH - European host which provides virtual VMWare farm) with pyvmomi (latest github dev version or release) with python 3.4 on windows 8.1 64, I get an exception : msg = 'sequence item 0: expected str instance, bytes found', File "d:\temp\pyvmomi-master\pyVmomi\SoapAdapter.py", line 1116, in read
The fix is quick
inflatedChunk = self.unzip.decompress(chunk)
will work better with :
inflatedChunk = self.unzip.decompress(chunk).decode('utf-8')
With that 'patch' I can connect and have a sample working (of course I had to struggle with the infamous SSL context bug before). Then I got other errors, and suddenly I wonder if this lib is really compatible with python 3, and if I ever should trust such a buggy piece of software to interact with production servers ...
Anyone else got those bugs ?