How to fix pycrypto error when installing steem library on python

in programming •  2 years ago 

Hello everyone! This is a quick post discussing how to fix the pycrypto error to follow while downloading the Steem python library. The error looks like this:

image.png

To fix it, I did as follows:

pip install pycryptodome
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

For the record, I tried many other things trouble shooting this, so I'm not sure if these two are the only things necessary to do, but I'm fairly confident they are.

I used the answers on this stack overflow article to get this.

If for no other reason, I am posting this because I have had this problems 3 times setting up programming environments to work with steem, and every time I have forgotten how I fixed the error the previous time.

Some notes:

Steempy does not work in the newer versions of python.
The steem python code is not maintained.

As someone who has spent a lot of time working with the steem python code, I would really like to request that the developers in this new steemit sponsored program take time to fix these problems. New programmers to steem will be very turned off by the poor state of this library.

Thanks for reading this! Hope this helped others!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Yes, I also had the error when I wanted to install the package with a newer Python version. I then simply took the Python version 3.8.

Thanks for your solution. I will test it.

I also support your suggestion to update the Python library. I have already noticed a few lines of code...

Saludos y bendiciones. Me gustaría aprender a programar. Que lenguaje me recomienda y donde puedo descargar

Hi!

I would probably start with python. It is a pretty good language to start with, and has a lot of different potential avenues in regards to future projects. If you speak English, I would recommend watching tutorials from Tech with Tim. If you don't, I would recommend googling python programming tutorials in Spanish on YouTube.

This is the editor I use (the free community addition). When you download it, it comes with python I believe.

Let me know if you have any questions or need help!

Saludos y bendiciones. Muy agradecida por su atención y receptividad. Dios me lo bendiga.