diff options
Diffstat (limited to 'pipermail/pycrypto/2016/000886.html')
-rw-r--r-- | pipermail/pycrypto/2016/000886.html | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2016/000886.html b/pipermail/pycrypto/2016/000886.html new file mode 100644 index 0000000..0f8f88b --- /dev/null +++ b/pipermail/pycrypto/2016/000886.html @@ -0,0 +1,271 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] pycryptodome + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20pycryptodome&In-Reply-To=%3CCAEncD4dBpwc3Tn-9WcS8qfhS5nTD7xUSD3eVwQth1zZ%3DAYv43Q%40mail.gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=utf-8"> + <LINK REL="Previous" HREF="000885.html"> + <LINK REL="Next" HREF="000887.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] pycryptodome</H1> + <B>Dave Pawson</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20pycryptodome&In-Reply-To=%3CCAEncD4dBpwc3Tn-9WcS8qfhS5nTD7xUSD3eVwQth1zZ%3DAYv43Q%40mail.gmail.com%3E" + TITLE="[pycrypto] pycryptodome">dave.pawson at gmail.com + </A><BR> + <I>Thu Dec 8 16:51:01 UTC 2016</I> + <P><UL> + <LI>Previous message: <A HREF="000885.html">[pycrypto] pycryptodome +</A></li> + <LI>Next message: <A HREF="000887.html">[pycrypto] pycryptodome +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#886">[ date ]</a> + <a href="thread.html#886">[ thread ]</a> + <a href="subject.html#886">[ subject ]</a> + <a href="author.html#886">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Subtle. Seems access to pip 3 is via + +# python3 -m pip list | grep crypto +DEPRECATION: The default format will switch to columns in the future. +You can use --format=(legacy|columns) (or define a +format=(legacy|columns) in your pip.conf under the [list] section) to +disable this warning. +pycrypto (2.6.1) + + +So 3 seems to have pycrypto 2.6.1... maybe. + +regards + + + +On 8 December 2016 at 16:47, Dave Pawson <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dave.pawson at gmail.com</A>> wrote: +><i> On 8 December 2016 at 12:46, Martin Falatic <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">martin at falatic.com</A>> wrote: +</I>>><i> When you run `pip2.7 list` (pretty sure that's what you need for python2, +</I>>><i> or `pip list` may be the defacto python2 pip on Fedora) and `pip3.5 list` +</I>>><i> (for python3), what are you seeing in the area of "pycrypto*" for each of +</I>>><i> these? I'm hopeful that once you have the proper libs installed for +</I>>><i> python3 via pip3.5 things should work better. +</I>><i> +</I>><i> pip2 list | grep crypt +</I>><i> pycryptodomex (3.4.3) +</I>><i> +</I>><i> +</I>><i> No such thing as pip3.x +</I>><i> +</I>><i> dnf install python3-pip +</I>><i> Last metadata expiration check: 0:00:48 ago on Thu Dec 8 16:40:04 2016. +</I>><i> Package python3-pip-8.1.2-2.fc25.noarch is already installed, skipping. +</I>><i> Dependencies resolved. +</I>><i> Nothing to do. +</I>><i> +</I>><i> dnf info python3-pip +</I>><i> Last metadata expiration check: 0:03:38 ago on Thu Dec 8 16:40:04 2016. +</I>><i> Installed Packages +</I>><i> Name : python3-pip +</I>><i> Arch : noarch +</I>><i> Epoch : 0 +</I>><i> Version : 8.1.2 +</I>><i> Release : 2.fc25 +</I>><i> Size : 8.6 M +</I>><i> Repo : @System +</I>><i> From repo : fedora +</I>><i> Summary : A tool for installing and managing Python3 packages +</I>><i> URL : <A HREF="http://www.pip-installer.org">http://www.pip-installer.org</A> +</I>><i> License : MIT +</I>><i> Description : Pip is a replacement for `easy_install +</I>><i> : <<A HREF="http://peak.telecommunity.com/DevCenter/EasyInstall">http://peak.telecommunity.com/DevCenter/EasyInstall</A>>`_. +</I>><i> It uses mostly the +</I>><i> : same techniques for finding packages, so packages that were made +</I>><i> : easy_installable should be pip-installable as well. +</I>><i> +</I>><i> +</I>><i> Looks like python3-pip is pip? +</I>><i> +</I>><i> Yet +</I>><i> +</I>><i> # pip -V +</I>><i> pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7) +</I>><i> +</I>><i> +</I>><i> So (possibly?) there is a pip looking at python3. +</I>><i> +</I>><i> +</I>><i> +</I>>><i> +</I>>><i> Normally you'd use the pip variant for python3 (e.g., pip3.5) to install +</I>>><i> packages for python3. Can you give that a look and retry? +</I>>><i> +</I>>><i> Note that I'm not an expert on pycryptodome - my understanding is that +</I>>><i> pycryptodome can be used instead of pycrypto, and it seems to work fine on +</I>>><i> Windows (and I don't have reason to think it'd be any different on Linux). +</I>>><i> I have no experience with pycryptodomex currently. I have pycryptodome +</I>>><i> installed on python 2.7 and 3.5 on my Windows box (and pycrypto NOT +</I>>><i> installed on either) and the test you described ran fine for both. +</I>>><i> +</I>>><i> That said, if this continues, what version of Fedora are you running? I +</I>>><i> can stand up a VM and see for myself. +</I>><i> +</I>><i> Latest - Fedora 25. +</I>><i> +</I>><i> Is there a separate mailing list for pycryptodome? +</I>><i> Perhaps I should ask there? +</I>><i> +</I>><i> Tks. Dave +</I>><i> +</I>><i> +</I>>><i> +</I>>><i> - M +</I>>><i> +</I>>><i> +</I>>><i> On Thu, December 8, 2016 01:44, Dave Pawson wrote: +</I>>>><i> Additional information. +</I>>>><i> +</I>>>><i> +</I>>>><i> pip install pycryptodomex Requirement already satisfied: pycryptodomex in +</I>>>><i> /usr/lib64/python2.7/site-packages +</I>>>><i> +</I>>>><i> +</I>>>><i> +</I>>>><i> Yet... +</I>>>><i> +</I>>>><i> +</I>>>><i> File "/usr/lib64/python3.5/site-packages/Crypto/Cipher/blockalgo.py", +</I>>>><i> line 141, in __init__ self._cipher = factory.new(key, *args, **kwargs) +</I>>>><i> ValueError: IV must be 16 bytes long +</I>>>><i> +</I>>>><i> +</I>>>><i> So (since I'm using python3) it's picking up the Crypto library from +</I>>>><i> python 3.5 and pip is installing it in python 2.7 +</I>>>><i> +</I>>>><i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/installation.html#windo">https://pycryptodome.readthedocs.io/en/latest/src/installation.html#windo</A> +</I>>>><i> ws-from-sources-python-3-5-and-newer +</I>>>><i> +</I>>>><i> (aside. Yum no longer used in Fedora, just replace with dnf) +</I>>>><i> +</I>>>><i> +</I>>>><i> python3 -m Cryptodome.Selftest /usr/bin/python3: Error while finding spec +</I>>>><i> for 'Cryptodome.Selftest' (ImportError: No module named 'Cryptodome') +</I>>>><i> +</I>>>><i> +</I>>>><i> regards Dave +</I>>>><i> +</I>>>><i> +</I>>>><i> On 8 December 2016 at 09:20, Dave Pawson <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dave.pawson at gmail.com</A>> wrote: +</I>>>><i> +</I>>>>><i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/installation.html">https://pycryptodome.readthedocs.io/en/latest/src/installation.html</A> +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> python3 -m Cryptodome.SelfTest /usr/bin/python3: Error while finding +</I>>>>><i> spec for 'Cryptodome.SelfTest' (ImportError: No module named +</I>>>>><i> 'Cryptodome') +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/examples.html">https://pycryptodome.readthedocs.io/en/latest/src/examples.html</A> +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> example +</I>>>>><i> +</I>>>>><i> python3 exp1.py Traceback (most recent call last): +</I>>>>><i> File "exp1.py", line 12, in <module> +</I>>>>><i> cipher = AES.new(key, AES.MODE_EAX) AttributeError: module +</I>>>>><i> 'Crypto.Cipher.AES' has no attribute 'MODE_EAX' +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> which seems to be true +</I>>>>><i> +</I>>>>><i> dir(AES) ['AESCipher', 'MODE_CBC', 'MODE_CFB', 'MODE_CTR', 'MODE_ECB', +</I>>>>><i> 'MODE_OFB', 'MODE_OPENPGP', 'MODE_PGP', '_AES', '__builtins__', +</I>>>>><i> '__cached__', '__doc__', '__file__', '__loader__', '__name__', +</I>>>>><i> '__package__', '__revision__', '__spec__', 'block_size', 'blockalgo', +</I>>>>><i> 'key_size', 'new'] +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> Bugs in docs? Library? +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> Suggestions please. +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> regards +</I>>>>><i> +</I>>>>><i> +</I>>>>><i> -- +</I>>>>><i> Dave Pawson +</I>>>>><i> XSLT XSL-FO FAQ. +</I>>>>><i> Docbook FAQ. +</I>>>>><i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A> +</I>>>>><i> +</I>>>><i> +</I>>>><i> +</I>>>><i> +</I>>>><i> -- +</I>>>><i> Dave Pawson +</I>>>><i> XSLT XSL-FO FAQ. +</I>>>><i> Docbook FAQ. +</I>>>><i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A> +</I>>>><i> _______________________________________________ +</I>>>><i> pycrypto mailing list <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>>>><i> +</I>>>><i> +</I>>><i> +</I>>><i> +</I>>><i> _______________________________________________ +</I>>><i> pycrypto mailing list +</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>><i> +</I>><i> +</I>><i> +</I>><i> -- +</I>><i> Dave Pawson +</I>><i> XSLT XSL-FO FAQ. +</I>><i> Docbook FAQ. +</I>><i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A> +</I> + + +-- +Dave Pawson +XSLT XSL-FO FAQ. +Docbook FAQ. +<A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A> +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000885.html">[pycrypto] pycryptodome +</A></li> + <LI>Next message: <A HREF="000887.html">[pycrypto] pycryptodome +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#886">[ date ]</a> + <a href="thread.html#886">[ thread ]</a> + <a href="subject.html#886">[ subject ]</a> + <a href="author.html#886">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto +mailing list</a><br> +</body></html> |