vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
165 stars 105 forks source link

vcd-cli login method fails #231

Open tsener opened 6 years ago

tsener commented 6 years ago

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

hodgesrm commented 6 years ago

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 commented 6 years ago

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

rocknes commented 6 years ago

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

Laliteus commented 4 years ago

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