vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

vcd-cli login method fails

Open tsener opened this issue 7 years ago • 4 comments

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

tsener avatar Jul 17 '18 14:07 tsener

Hi @tsener,

vcd-cli only works with Python 3. Which version of vcd-cli are you using? (vcd version should tell you.)

Thanks, Robert

hodgesrm avatar Jul 17 '18 14:07 hodgesrm

p.s., Also what does python3 --version show?

hodgesrm avatar Jul 17 '18 14:07 hodgesrm

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

rocknes avatar Jul 17 '18 17:07 rocknes

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

Laliteus avatar Oct 04 '19 16:10 Laliteus