5 Replies Latest reply on Oct 29, 2014 10:13 AM by BREL

    Cannot install python-openssl package & its dependency cffi-0.8.2.gz -on Linux Gen2



      I am currently using Intel Gen-2 board with SD card Linux boot - I am able to SSH into the system but not able to run my Python Websocket Client code which connects to Secure website. Reason is I am not able to properly install - Python-openssl package and one of its dependency package cffi-0.8.2.gz. It is giving me following error


      root@clanton:/cffi-0.8.2# python setup.py install

      unable to execute cc: No such file or directory

      the above error message can be safely ignored;

      will not use '__thread' in the C code

      running install

      running bdist_egg

      running egg_info

      writing requirements to cffi.egg-info/requires.txt

      writing cffi.egg-info/PKG-INFO

      writing top-level names to cffi.egg-info/top_level.txt

      writing dependency_links to cffi.egg-info/dependency_links.txt

      reading manifest file 'cffi.egg-info/SOURCES.txt'

      reading manifest template 'MANIFEST.in'

      writing manifest file 'cffi.egg-info/SOURCES.txt'

      installing library code to build/bdist.linux-i586/egg

      running install_lib

      running build_py

      running build_ext

      building '_cffi_backend' extension

      i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i586-2.7/c/_cffi_backend.o

      unable to execute i586-poky-linux-uclibc-gcc: No such file or directory

      error: command 'i586-poky-linux-uclibc-gcc' failed with exit status 1


      Looks to me Linux image is missing something here


      Because of this When I am connecting to my Websocket server - I get this error

      1:01:2001 01:26:48-CRITICAL-Error Info: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

      Error Info: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

      01:01:2001 01:26:48-CRITICAL-(<class 'ssl.SSLError'>, SSLError(1, '_ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'))


      Any Pointers - highly appreciated