[PYTHON-CRYPTO] [Fwd: errors running alltests in test_ssl.py]

Greg Cook m2crypto at EDAC.UNM.EDU
Mon Aug 15 20:37:47 CEST 2005


Hello:

I have been receiving errors running alltests.py (following).  They are
coming up during the test_ssl.py portion of the test script.

I am running Python 2.4.1, Openssl 0.9.8, and Swig 1.3.23.

Below are the errors:

*****************************************************************************
[root at tux tests]# python alltests.py
................................................................bind:
Address already in use
Ebind: Address already in use
Ebind: Address already in use
Ebind: Address already in use
Ebind: Address already in use
Ebind: Address already in use
E
======================================================================
ERROR: test_cipher_mismatch (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/m2crypto-0.13/tests/test_ssl.py", line 89, in
test_cipher_mismatch
    ctx = SSL.Context()
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
    map()[self.ctx] = self
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
    self.map[key] = value
TypeError: unhashable type

======================================================================
ERROR: test_cipher_ok (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/m2crypto-0.13/tests/test_ssl.py", line 115, in
test_cipher_ok
    ctx = SSL.Context()
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
    map()[self.ctx] = self
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
    self.map[key] = value
TypeError: unhashable type

======================================================================
ERROR: test_no_such_cipher (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/m2crypto-0.13/tests/test_ssl.py", line 102, in
test_no_such_cipher
    ctx = SSL.Context()
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
    map()[self.ctx] = self
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
    self.map[key] = value
TypeError: unhashable type

======================================================================
ERROR: test_server_simple (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/m2crypto-0.13/tests/test_ssl.py", line 55, in
test_server_simple
    ctx = SSL.Context()
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
    map()[self.ctx] = self
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
    self.map[key] = value
TypeError: unhashable type

======================================================================
ERROR: test_tls1_nok (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/m2crypto-0.13/tests/test_ssl.py", line 66, in
test_tls1_nok
    ctx = SSL.Context('tlsv1')
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
    map()[self.ctx] = self
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
    self.map[key] = value
TypeError: unhashable type

======================================================================
ERROR: test_tls1_ok (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/m2crypto-0.13/tests/test_ssl.py", line 78, in
test_tls1_ok
    ctx = SSL.Context('tlsv1')
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
    map()[self.ctx] = self
  File "/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
    self.map[key] = value
TypeError: unhashable type

---------------------------------------------------------------------- Ran
70 tests in 3.695s

FAILED (errors=6)
******************************************************************************

Can you please help with this problem?

Thank you,
GDCook



More information about the python-crypto mailing list