ARMmbed / yotta

DEPRECATED: yotta build; better software
Apache License 2.0
164 stars 64 forks source link

OpenSSL binding error on Ubuntu 16.04.3 #823

Closed sgk closed 6 years ago

sgk commented 6 years ago

After installing by pip, the yotta login command results in AttributeError.

$ yotta
usage: yotta [-h] [--version] [-v] [--plain] [--colourful] [--noninteractive]
             [-t TARGET] [--config path/to/config.json]
             <subcommand> ...
yotta: error: too few arguments
$ yotta login
From cffi callback <function _verify_callback at 0x7fa122d38758>:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'

You need to log in to do this.
Press enter to continue.
Your browser will open to complete login.
^Cwarning: interrupted
$ 
sgk commented 6 years ago

I found this can be corrected by installing latest pyopenssl separately.

$ pip install pyopenssl yotta
sgk commented 6 years ago

You may want to add note to the installation page http://docs.yottabuild.org/#installing-on-linux

thegecko commented 6 years ago

Similar issues have also been fixed using:

$ pip install --upgrade setuptools
$ pip install --upgrade pyOpenSSL