<html><head></head><body>No problem... I just started looking at this but it sounds like you already got it sorted. Sounds like either a missing dependency or install conflict was to blame there.<br>
<br><br><div class="gmail_quote">On September 16, 2017 12:35:26 AM PDT, 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">Now resolved (again?).<br />The similarity of names and what needs to be changed seems to be the<br />source of my problems?<br /><br />Sorry to waste bandwidth.<br /><br />On 15 September 2017 at 19:21, Dave Pawson <dave.pawson@gmail.com> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> New (Windows 10) machine.<br /> installed python 3.6.2<br /> pip install pycryptodomex<br /> SelfTest ran fine.<br /><br /> Tried the examples at <a href="https://www.pycryptodome.org/en/latest/src/examples.html">https://www.pycryptodome.org/en/latest/src/examples.html</a><br /><br /><br /> C:\Users\Dave Pawson>python<br /> Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64<br /> bit (AMD64)] on win32<br /> Type "help", "copyright", "credits" or "license" for more information.<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"> from Crypto.Cipher import AES<br /></blockquote></blockquote></blockquote> Traceback (most recent call last):<br /> File "<stdin>", line 1, in <module><br /> ModuleNotFoundError: No module named 'Crypto'<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"> from Crypto.Random import get_random_bytes<br /></blockquote></blockquote></blockquote> Traceback (most recent call last):<br /> File "<stdin>", line 1, in <module><br /> ModuleNotFoundError: No module named 'Crypto'<br /><br /><br /><br /> Are they out of date please Martin?<br /><br /> regards<br /><br /><br /><br /> On 22 July 2017 at 09:38, Martin Falatic <martin@falatic.com> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Not sure about the error you got, but generally if you are installing things<br /> directly into Linux system library areas you'll need root / sudo to do it.<br /> I'm surprised that didn't come up with pycrypto, but it might be an artifact<br /> of other install attempts.<br /><br /> If in doubt, that sounds like good info for an issue on the github issue<br /> tracker for pycryptodome.<br /><br /><br /><br /> On 2017-07-22 00:44, Dave Pawson wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"><br /> pip uninstalled pycrypto!<br /><br /> Re install instructions. Fedora 26, requires root for installation?<br /><br /> running install_lib<br /> copying build/lib.linux-x86_64-3.6/Cryptodome/__init__.py -><br /> /usr/lib64/python3.6/site-packages/Cryptodome<br /> error: could not delete<br /> '/usr/lib64/python3.6/site-packages/Cryptodome/__init__.py':<br /> Permission denied<br /><br /> Not mentioned on<br /> <a href="https://www.pycryptodome.org/en/latest/src/installation.html">https://www.pycryptodome.org/en/latest/src/installation.html</a><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"> python3 -m Cryptodome.SelfTest<br /></blockquote><br /> ...<br /> Ran 22656 tests in 37.023s<br /><br /> Tks<br /><br /> On 22 July 2017 at 08:34, Dave Pawson <dave.pawson@gmail.com> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"><br /> Having installed pycrypto, is the only way to remove it to find the<br /> files and remove manually?<br /><br /> (groan) - or will pycryptodome run alongside pycrypto please?<br /><br /> Tia<br /><br /> On 21 July 2017 at 20:21, Martin Falatic <martin@falatic.com> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"><br /> As this project hasn't seen commits on master (or perhaps any branch) in<br /> over three years, it appears to be dead.<br /><br /> However, pycryptodome is alive and well! It's a fork off the latest<br /> pycrypto<br /> and contains many bugfixes, enhancements. Most importantly, it's an<br /> ongoing<br /> project.<br /><br /> <a href="https://github.com/Legrandin/pycryptodome">https://github.com/Legrandin/pycryptodome</a><br /><br /> <a href="https://www.pycryptodome.org">https://www.pycryptodome.org</a>/<br /><br /> There are two ways to install it: for a seamless experience I recommend<br /> uninstalling pycrypto (if present) and installing pycryptodome.<br /><br /> (pycryptodomex has its uses for some, but would mean editing your<br /> imports,<br /> whereas pycryptodome is a drop-in replacement for pycrypto.)<br /><br /> If you have issues with installing or using pycryptodome, there are<br /> resources there to guide you and an active issue tracker as well.<br /><br /> Good luck!<br /><br /> - Marty<br /> <a href="http://www.falatic.com">www.falatic.com</a><br /><br /><br /> On 2017-07-21 07:16, Dave Pawson wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"><br /><br /> Installing on a new system, Fedora 26, 64 bit.<br /> Builds OK using <a href="http://setup.py">setup.py</a> for python 2.7<br /><br /> Fails on python 3.x?<br /><br /> Should this be built in a different way please?<br /><br /> TiA<br /></blockquote></blockquote><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 /></blockquote></blockquote></blockquote><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 /></blockquote><br /><br /></pre></blockquote></div></body></html>