<html><head></head><body>Got it. I'd think uninstalling pycrypto would suffice.<br>
<br>
Pycryptodomex is an option, but then you have to refactor everything. I'd go with pycryptodome alone.<br><br><div class="gmail_quote">On December 7, 2016 12:33:56 PM PST, Dave Pawson <dave.pawson@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">That was the implied question.<br />I installed pycrypto using rpm,<br />pycryptodome using pip.<br /><br />I think I need to start again!<br /><br />regards<br /><br /><br />On 7 December 2016 at 19:09, Martin Falatic <martin@falatic.com> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> As per the docs, do NOT do that. Uninstall pycrypto if you are using<br /> pycryptodome, or vice versa.<br /> - Marty<br /><br /><br /><br /> On Wed, December 7, 2016 04:58, Dave Pawson wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> It does. Sorry.<br /> I used pip to install pycryptodome.<br /> So now I have both the old pycrypto and pycryptodome 'providing' Crypto<br /> package! Mmm.<br /><br /><br /> Still working, so I'll leave it for now.<br /><br /><br /> regards<br /><br /><br /> On 7 December 2016 at
12:02, Martin Falatic <martin@falatic.com> wrote:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> See the introduction link I sent previously. It explains this in<br /> detail.<br /><br /> On December 7, 2016 3:45:58 AM PST, Dave Pawson <dave.pawson@gmail.com><br /> wrote:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"><br /> # pip search pycryptodome<br /> pycryptodome (3.4.3) - Cryptographic library for Python pycryptodomex<br /> (3.4.3) - Cryptographic library for Python<br /><br /><br /> What's the difference please?<br /><br /><br /> regards<br /><br /> On 6 December 2016 at 21:41, Martin Falatic <martin@falatic.com><br /> wrote:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"><br /> Since it's forked from pycrypto
2.6.1 I think you'll be fine.<br /> However,<br /> if you find places where it falls short versus this one, please open<br /> an issue with them first so it can be tracked and hopefully<br /> rectified, and reply with the bug link here so others can be aware<br /> of it.<br /><br /> - M<br /><br /><br /><br /> On Tue, December 6, 2016 13:34, Dave Pawson wrote:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"><br /> Thanks for that. Good it's installable via pip.<br /> I've a whole setup (pwd safe) to check out, I'll<br /> see if it sits as a usable replacement.<br /><br /> Dave<br /><br /><br /><br /> On 6 December 2016 at 21:12, Martin Falatic <martin@falatic.com><br /> wrote:<br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> Consider the following rather basic but important bug in<br /> pycrypto:<br /><br /><br /><br
/> <a href="https://github.com/dlitz/pycrypto/issues/187">https://github.com/dlitz/pycrypto/issues/187</a><br /><br /><br /><br /> As you'll see there, I stumbled on it and even built a fixed<br /> version a few months ago.<br /><br /> Revisiting this now, I just re-tested to see that pycryptodome<br /> already has that fix in it.<br /><br /> Your mileage may vary, but pycryptodome is being actively<br /> developed and maintained and is a drop-in replacement for<br /> pycrypto.<br /><br /> - Marty<br /><br /><br /><br /><br /><br /> On Tue, December 6, 2016 04:56, Dave Pawson<br /> wrote:<br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> I downloaded and built from source which seems to work fine.<br /> Shame really, it's a good library.<br /><br /><br /><br /><br /> regards<br /><br /> On 6 December 2016 at 09:12, Martin Falatic<br /> <martin@falatic.com><br /> wrote:<br /><br /><br /><br
/><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> Unfortunately, by all appearances PyCrypto seems to be<br /> dead. I would consider Helder Eijs' "PyCryptodome" as a<br /> replacement. More information:<br /><br /><br /><br /><br /> <a href="https://pycryptodome.readthedocs.io/en/latest/src/introduct">https://pycryptodome.readthedocs.io/en/latest/src/introduct</a><br /> ion.html<br /><br /><br /><br /> - Marty<br /> @MartyMacGyver most places<br /><br /><br /><br /><br /><br /> On Fri, December 2, 2016 01:38, Dave Pawson wrote:<br /><br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> further investigations show:<br /><br /> # pip show pycrypto<br /> Name: pycrypto<br /> Version: 2.6.1<br /> Summary: Cryptographic modules for Python.<br /> Home-page: <a href="http://www.pycrypto.org">http://www.pycrypto.org</a>/<br /> Author: Dwayne C.
Litzenberger<br /> Author-email: dlitz@dlitz.net<br /> License: UNKNOWN<br /> Location: /usr/lib64/python2.7/site-packages<br /><br /><br /><br /><br /><br /><br /> All my code is (now) Python 3.5.<br /> Question if 3.5 code accesses 2.7 site-packages?<br /><br /><br /><br /><br /><br /> Is there a way round this please?<br /><br /><br /><br /><br /><br /> regards<br /><br /><br /><br /> On 2 December 2016 at 08:28, Dave Pawson<br /> <dave.pawson@gmail.com><br /> wrote:<br /><br /><br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> Fedora 25, installing<br /> pycrypto 2.6.1<br /><br /><br /><br /><br /> full build at <a href="http://pastebin.com/acC5r1YY">http://pastebin.com/acC5r1YY</a><br /><br /> error reported<br /><br /> gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No<br /> such file or directory error: command 'gcc' failed with<br /> exit status 1<br /><br /><br /> Searching for the
error I found<br /> <a href="https://bugs.launchpad.net/openstack-gate/+bug/1424582">https://bugs.launchpad.net/openstack-gate/+bug/1424582</a><br /><br /><br /><br /><br /><br /> # dnf install redhat-rpm-config<br /><br /><br /><br /><br /><br /> which then brought<br /><br /> src/MD2.c:31:20: fatal error: Python.h: No such file or<br /> directory #include "Python.h" ^<br /> compilation terminated. error: command 'gcc' failed with<br /> exit status 1<br /><br /><br /><br /><br /> dnf install python3-devel resolved that.<br /><br /> I'm lost now with<br /><br /><br /><br /><br /><br /> from Crypto.Cipher import AES ImportError: No module<br /> named 'Crypto'<br /><br /><br /><br /><br /><br /> Google has lots of varying suggestions, none of which<br /> seem to work.<br /><br /> Any help please.<br /><br /><br /><br /><br /><br /> --<br /> Dave Pawson<br /> XSLT XSL-FO FAQ.<br /> Docbook FAQ.<br /> <a href="http://www.dpawson.co.uk">http://www.dpawson.co.uk</a></blockquote><br /><br
/><br /><br /><br /><br /><br /><br /> --<br /> Dave Pawson<br /> XSLT XSL-FO FAQ.<br /> Docbook FAQ.<br /> <a href="http://www.dpawson.co.uk">http://www.dpawson.co.uk</a><br /><hr /><br /><br /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><br /><br /><br /><br /><hr /><br /><br /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><br /><br /><br /> --<br /> Dave Pawson<br /> XSLT XSL-FO<br /> FAQ.<br /> Docbook FAQ.<br /> <a href="http://www.dpawson.co.uk">http://www.dpawson.co.uk</a><br /><hr /><br /><br /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a
href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><br /><br /><br /><hr /><br /><br /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><br /><br /> --<br /> Dave Pawson<br /> XSLT XSL-FO FAQ.<br /> Docbook FAQ.<br /> <a href="http://www.dpawson.co.uk">http://www.dpawson.co.uk</a><br /><hr /><br /><br /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><br /><br /><hr /><br /><br /><br /> pycrypto mailing list<br /><br /> pycrypto@lists.dlitz.net<br /> <a
href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /></blockquote><br /><br /><br /><hr /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><br /> --<br /> Dave Pawson<br /> XSLT XSL-FO FAQ.<br /> Docbook FAQ.<br /> <a href="http://www.dpawson.co.uk">http://www.dpawson.co.uk</a><br /><hr /><br /> pycrypto mailing list pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></blockquote><br /><br /><br /><br /><hr /><br /> pycrypto mailing list<br /> pycrypto@lists.dlitz.net<br /> <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a><br
/></blockquote><br /><br /></pre></blockquote></div></body></html>