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