Open arvoelke opened 4 years ago
Did some checking around: https://github.com/ARMmbed/mbed-cli/blob/c2528f6fca8d73be0f5cb5e494dd4987f40c39fa/mbed/mbed.py#L393-L400 and noticed that the empty string check is an infinite loop in Python3 (since b'' != ''
).
Fixed in #969.
Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-648
For everyone still encountering this issue after 2022:
pip uninstall mbed-cli
git clone https://github.com/ARMmbed/mbed-cli.git
cd mbed-cli
pip install --editable .
edit mbed/mbed.py and change line 397 to:
while data != b'':
and line 294 to:
return stdout.decode("ANSI")
then you should be able to download the libraries
return stdout.decode("ANSI")
led to this error on my machine (Ubuntu 22.04):
ERROR: Unknown Error: unknown encoding: ANSI
so I changed it back to the original, then it worked successfully.
For everyone still encountering this issue after 2022:
pip uninstall mbed-cli git clone https://github.com/ARMmbed/mbed-cli.git cd mbed-cli pip install --editable .
edit mbed/mbed.py and change line 397 to:
while data != b'':
and line 294 to:
return stdout.decode("ANSI")
then you should be able to download the libraries
This worked but without editing line 294 on Ubuntu (editing the line gave another error when creating the project). Thanks a lot, I have been going crazy over this
On the current master branch of
mbed-cli
:I've tried this three times now, each time keeping it open for more than 24 hours -- and it still hangs.
If I visit the above url (https://mbed.org/users/mbed_official/code/mbed/builds) and click on the first build (
65be27845400
), it takes me to an invalid page:https://os.mbed.com/users/mbed_official/code/mbed//builds/65be27845400/
Note there are two slashes (
//
) in the URL. If I remove one of the slashes then the link becomes valid. Is there a fix or work-around? Thanks.