ARMmbed / mbed-cli

Arm Mbed Command Line Interface
https://os.mbed.com
Apache License 2.0
334 stars 176 forks source link

Mbed Cli not working with Python3 #957

Closed yasir-khilji-64 closed 4 years ago

yasir-khilji-64 commented 4 years ago

I recently installed Ubuntu on my work PC and install Python3 Pip. Installed virtualenv and made a separate env for mbed and pip install mbed-cli. when I do mbed new name-of-project, it stucks at [mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at branch/tag "latest". I thought it was an issue with virtaulenv, and installed mbed-cli system wide, but still the same issue. It works on Python2. but we are changing our dev env from python2 to python3. Please help ASAP.

ciarmcom commented 4 years ago

Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-606

yasir-khilji-64 commented 4 years ago

image Issue is here. please help.

acabarbaye commented 4 years ago

Could you tell us the git version, you are using and also ensure that it is in the PATH?

acabarbaye commented 4 years ago

I have tried to reproduce the problem but unfortunately I don't see any issue with python3:

adrcab01@E106283:~/testmbed$ python -V
Python 3.7.3
adrcab01@E106283:~/testmbed$ mbed new blink
[mbed] Working path "/home/adrcab01/testmbed" (directory)
[mbed] Creating new program "blink" (git)
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at branch/tag "latest"
[mbed] Updating reference "mbed-os" -> "https://github.com/ARMmbed/mbed-os/#e642a7d8b3609a7c903e042cd772f00a5d299088"
[mbed] Auto-installing missing Python modules (click)...
adrcab01@E106283:~/testmbed$ uname --all
Linux E106283 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux