[pycrypto] problems with testing PyCrypto Module

Philip Anil-QBW348 anil.philip at motorolasolutions.com
Tue Jun 26 11:47:56 EDT 2012


After a long time (1 hr) and hitting [enter]:

D:\Cryptolibrary\pycrypto-2.6>python setup.py build
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

D:\Cryptolibrary\pycrypto-2.6>python setup.py test
running test
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
............................................SelfTest: You can ignore the RandomPool_DeprecationWarning that follows.
.........E...................
======================================================================
ERROR: test_negative_number_roundtrip_mpzToLongObj_longObjToMPZ (Crypto.SelfTest.Util.test_number.MiscTests)
Test that mpzToLongObj and longObjToMPZ (internal functions) roundtrip negative numbers correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\Crypto\SelfTest\Util\test_number.py", line 283, in test_negative_number_roundtrip_mpzToLongO
bj_longObjToMPZ
    k = number._fastmath.rsa_construct(n, e)
AttributeError: 'NoneType' object has no attribute 'rsa_construct'

----------------------------------------------------------------------
Ran 1033 tests in 3513.075s

FAILED (errors=1)
Traceback (most recent call last):
  File "setup.py", line 456, in <module>
    core.setup(**kw)
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 336, in run
    SelfTest.run(module=moduleObj, verbosity=self.verbose, stream=sys.stdout, config=self.config)
  File "build\lib.win32-2.7\Crypto\SelfTest\__init__.py", line 74, in run
    raise SelfTestError("Self-test failed", result)
Crypto.SelfTest.SelfTestError: ('Self-test failed', <unittest.runner.TextTestResult run=1033 errors=1 failures=0>)



From: pycrypto-bounces at lists.dlitz.net [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Philip Anil-QBW348
Sent: Tuesday, June 26, 2012 9:50 AM
To: PyCrypto discussion list
Subject: Re: [pycrypto] problems with testing PyCrypto Module

D: \pycrypto-2.6>python setup.py build
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

D: \pycrypto-2.6>python setup.py test
running test
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
...............................................................................................................

From: pycrypto-bounces at lists.dlitz.net<mailto:pycrypto-bounces at lists.dlitz.net> [mailto:pycrypto-bounces at lists.dlitz.net] On Behalf Of Philip Anil-QBW348
Sent: Monday, June 25, 2012 5:21 PM
To: pycrypto at lists.dlitz.net<mailto:pycrypto at lists.dlitz.net>
Subject: [pycrypto] problems with testing PyCrypto Module


Python newbie here.

Win XP with VS 2008 installed.

I ran the commands from the README for PyCrypto. No errors reported. python setup.py test produces lots of ................. and then hangs. No message saying "all tests passed" or whatever.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dlitz.net/pipermail/pycrypto/attachments/20120626/b4e02f50/attachment-0001.html>


More information about the pycrypto mailing list