[pycrypto] Build error?

Martin Falatic martin at falatic.com
Wed Dec 7 19:09:52 UTC 2016


As per the docs, do NOT do that. Uninstall pycrypto if you are using
pycryptodome, or vice versa.
 - Marty



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




More information about the pycrypto mailing list