CiscoDevNet / Hyperflex-Hypercheck

Perform pro-active self checks on your Hyperflex cluster to ensure stability and resiliency
MIT License
27 stars 17 forks source link

TypeError: a bytes-like object is required, not 'str' #44

Open kenvb opened 3 years ago

kenvb commented 3 years ago

MyUser@MyServer:~/hyperflex/Hyperflex-Hypercheck-master$ python3 HXTool.py

             HX Health Check 4.2

The script in use might be old. Please check and confirm that this is the latest script on Github.

Please enter below info of HX-Cluster: Enter the HX-Cluster Root Password: Enter the ESX Root Password: eth1: error fetching interface information: Device not found Traceback (most recent call last): File "HXTool.py", line 1999, in op = runcmd(cmd) File "HXTool.py", line 138, in runcmd output = cmdoutput.split("\n") TypeError: a bytes-like object is required, not 'str'

Running python3 or python3.7 command give the same result. Here is the output of pip3 freeze:

asn1crypto==0.24.0 bcrypt==3.2.0 certifi==2018.8.24 cffi==1.14.6 chardet==3.0.4 cryptography==2.6.1 entrypoints==0.3 httplib2==0.11.3 idna==2.6 iotop==0.6 Jinja2==3.0.1 keyring==17.1.1 keyrings.alt==3.1.1 MarkupSafe==2.0.1 paramiko==2.7.2 pycparser==2.20 pycrypto==2.6.1 pycurl==7.43.0.2 PyGObject==3.30.4 PyNaCl==1.4.0 PySimpleSOAP==1.16.2 python-apt==1.8.4.3 python-debian==0.1.35 python-debianbts==2.8.2 pyxdg==0.25 reportbug===7.5.3-deb10u1 requests==2.21.0 SecretStorage==2.3.1 six==1.12.0 urllib3==1.24.1