Topic: [SOLVED] Intalling WolfSSL on Raspberry Pi

Hello, I'm trying to install the WolfSSL library (wolfcrypt specifically) on Raspberry Pi. This is a python project, so I am following this tutorial: "https://wolfssl.github.io/wolfcrypt-py/".

But I find troubles at the installation, when I reach the section "Installing wolfcrypt",  when I use the "sudo pip install wolfcrypt -H" command I'm getting the following error:

http://fotos.subefotos.com/b234be665edaa89b2c82adc3756fd27bo.jpg


Then to call: ' "wolfcrypt.hashes import from Sha, Sha print () hexdigest ()" python -c' I get this:

http://fotos.subefotos.com/17250a6473265cc72742cd454fa82afdo.jpg

I followed all the steps three times and get the same.

Can you offer me some help here? Thank you very much in advance.

Share

Re: [SOLVED] Intalling WolfSSL on Raspberry Pi

Hi jesussotofan,

Please see my reply to your inquiry on the pi forums: https://www.raspberrypi.org/forums/view … 4#p1054274

Regards,

kaleb

3 (edited by jesussotofan 2016-10-18 10:34:23)

Re: [SOLVED] Intalling WolfSSL on Raspberry Pi

Thank you so much, finally works.

Can I ask for your help once again?

When I import a module like 'ciphers.py' or 'hashes.py' in my python project, I get the error: "ffi import from wolfcrypt._ffi as _ffi ImportError: No module named _ffi".

Where is this module? How can I import it into my python project correctly? Thank you so much in any case for all the help received so far, you're saving me.

Share

Re: [SOLVED] Intalling WolfSSL on Raspberry Pi

Hi jesussotofan,

I checked with our python expert and he said this is a very common issue.

if you run python inside wolfssl/wrapper/python
it will try to use the local code instead of the installed one.
the local code doesn’t have the _ffi module, it is built during the building process.

- Moisés Guimarães

His suggestion is to run python from a different location and if you have similar issue then take a screenshot or echo the error output to a file and send to us for review.

- Kaleb