AttributeError: 'X509' object has no attribute '_x509'

Recently I was trying to install requests python package and it gave the error you can see above.  This was annoying as I was hoping it would be simple.  It seems I needed to install/update a couple of other packages first, this were  pyopenssl and Cryptography.

I could see I had them installed, and checked the version they were too low.  If you need to check the version you can type pip show pyopenssl.

Once I saw the versions, a simple update would upgrade them, to do this the commands were

sudo pip update pyopenssl -U

Followed by

sudo pip install Cryptography -U

Once this was done I could install requests, hope this helps.

I am always interested in feedback so please feel free to add any comments, or you can mail me  here.  If you would like to submit a quick tip  with full credit and links back to your site then also feel free to contact me.

Related Posts Plugin for WordPress, Blogger...



Reset Jenkins Sequence Numbers

FTP Script using Python