Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pan- opened this issue Mar 24, 2021 · 2 comments
Open

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

pan- opened this issue Mar 24, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@pan-
Copy link
Member

pan- commented Mar 24, 2021

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

  • Instructions to install the third party dependencies.
  • Setup of environment variable when pip is invoked depending on whether MacOS is used or not.
@pan- pan- added the bug Something isn't working label Mar 24, 2021
@noonfom
Copy link

noonfom commented Apr 1, 2021

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

@noonfom
Copy link

noonfom commented Apr 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants