ARMmbed / mbed-os-experimental-ble-services

Incubator of Bluetooth services
Apache License 2.0
7 stars 8 forks source link

[BUG] bootstrap.sh fail on Mac OS #50

Open pan- opened 3 years ago

pan- commented 3 years ago

Describe the bug The cryptography and cmsis python package used by Mbed OS are not trivial to install on Mac OS:

To Reproduce ./bootstrap.sh on MacOS.

Expected behavior

noonfom commented 3 years ago

Is this not an Mbed OS issue? I mean cryptography and cmsis-pack-manager are pulled in here.

noonfom commented 3 years ago

Indeed it fails on Mac OS with Python 3.8+. However, the issue is a result of the Mbed OS cryptography version being incompatible with 3.8+, not Mac OS.

As a workaround, we can edit the Mbed OS requirements in bootstrap.sh:

# Edit Mbed OS cryptography requirement for Python 3.8+
sed -i '' 's/cryptography>=2.5,<3/cryptography/' dependencies/mbed-os/requirements.txt

It may also be required to specify a Click version > 7.1