5 years, 7 months ago.

mbed compile fails @ /make.py", line 45, and so on... ...

After complete Install of Linux Mint 18.1, I did 2 complete Fresh re-installs of mbed-cli with pip as of Sept 27 2018, on -> Linux Mint 18.1 KDE Kernel 4.4.0-135-generic 64 bit

I have seen old posts with the same out put on "https://github.com/ARMmbed/mbed-cli/issues/301" and yes I've pip install -r mbed-os/requirements.txt but still I get the same above outcome see the "Traceback"

Thanx...

wolfgangwayalnd7@comcast.net

mbed -v compile

Traceback (most recent call last):

File "/home/wolf/TEST/mbed-os-example-blinky/mbed-os/tools/make.py", line 45, in <module> from tools.options import get_default_options_parser

File "/home/wolf/TEST/mbed-os-example-blinky/mbed-os/tools/options.py", line 24, in <module> from .toolchains import TOOLCHAINS

File "/home/wolf/TEST/mbed-os-example-blinky/mbed-os/tools/toolchains/init.py", line 43, in <module> from ..config import ConfigException

File "/home/wolf/TEST/mbed-os-example-blinky/mbed-os/tools/config/init.py", line 31, in <module> from jsonschema import Draft4Validator, RefResolver

File "/home/wolf/.local/lib/python2.7/site-packages/jsonschema/init.py", line 18, in <module> from jsonschema.validators import (

File "/home/wolf/.local/lib/python2.7/site-packages/jsonschema/validators.py", line 8, in <module> import requests

File "/home/wolf/.local/lib/python2.7/site-packages/requests/init.py", line 95, in <module> from urllib3.contrib import pyopenssl

File "/home/wolf/.local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module> import OpenSSL.SSL

File "/usr/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in <module> from OpenSSL import rand, crypto, SSL

File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module> SSL_ST_INIT = _lib.SSL_ST_INIT

AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

[mbed] ERROR: "/usr/bin/python" returned error. Code: 1

Path: "/home/wolf/TEST/mbed-os-example-blinky"

Command: "/usr/bin/python -u /home/wolf/TEST/mbed-os-example-blinky/mbed-os/tools/make.py -t GCC_ARM -m disco_f469ni source . build ./BUILD/DISCO_F469NI/GCC_ARM"

1 Answer

5 years, 6 months ago.

Hi Wolfgang,

Please try the following commands:

pip uninstall pyopenssl

then

pip install pyopenssl

Please let me know if that resolves your errors.

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Not OP, but this worked for me to clear that error.

posted by Melvyn Drag 22 Mar 2019