vcd-cli login method fails
This is what I get upon login;
[root@vcd1 ~]# vcd-cli login hostname.local.domain org username -i -w --password 123 Traceback (most recent call last): File "/usr/local/bin/vcd-cli", line 7, in <module> from vcd_cli.vcd import vcd File "/root/.local/lib/python3.6/site-packages/vcd_cli/vcd.py", line 110, in <module> load_user_plugins() File "/root/.local/lib/python3.6/site-packages/vcd_cli/plugin.py", line 22, in load_user_plugins if 'extensions' in profiles.data and \ TypeError: argument of type 'NoneType' is not iterable
version is latest, upgraded through pip. Python version:2.6.6 on Cent 6.7 x64
Hi @tsener,
vcd-cli only works with Python 3. Which version of vcd-cli are you using? (vcd version should tell you.)
Thanks, Robert
p.s., Also what does python3 --version show?
From the stacktrace it looks like that profile file is corrupted or has incomplete data. Can you please upload/paste content of profiles.yaml here?
The file should be located in ~/.vcd-cli/profiles.yaml
I am facing the same issue and found ~/.vcd-cli/profiles.yaml is not located. I am trying to connect vCloud Director 5.5
python3 --version Python 3.6.8 pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
vcd-cli, VMware vCloud Director Command Line Interface, 22.0.0