473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Errors testing m2crypto

Hi,

I get the following messages running the testall.py script with
m2crypto 0.13, can anyone tell me what's wrong?

.................................................. ...............EEEEEE
================================================== ====================
ERROR: test_cipher_mismatch (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/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 "/root/packages/files/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 "/root/packages/files/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 "/root/packages/files/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 "/root/packages/files/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 "/root/packages/files/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

----------------------------------------------------------------------

Thanks,

Morten

Dec 16 '05 #1
1 1789
morphex wrote:
I get the following messages running the testall.py script with
m2crypto 0.13, can anyone tell me what's wrong?
Those happened either because of SWIG or OpenSSL incompatibility. They
have been fixed since. Either get the latest release (0.15) or the fresh
bits from Subversion. This shows how to get those:
http://wiki.osafoundation.org/bin/vi...ts/MeTooCrypto


.................................................. ..............EEEEEE
================================================== ====================
ERROR: test_cipher_mismatch (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/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


--
Heikki Toivonen
Dec 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hallvard B Furuseth | last post by:
Does anyone know how I check the server certificate with M2Crypto? Currently a program I have inherited does this: #!/local/bin/python2.2 import xmlrpclib from M2Crypto.m2xmlrpclib import...
7
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results....
2
by: Roberto | last post by:
Hi there, i'm trying to compile m2crypto-0.12-snap1 in the following environment: Mingw32 OpenSSL python 2.2 swig I have changed path correctly in setup.py and even tried to compile
5
by: jsmilan | last post by:
Hi, all; I'm strictly an amateur developer who has dabbled in a half dozen languages on eight or nine systems over 20 years or so. I have never devoted the time or energy to thoroughly learn...
5
by: KW | last post by:
I'm trying to convert some PHP code using OpenSSL to Python and I'm stuck on openssl_sign() which uses an RSA private key to compute a signature. Example PHP code: $privkeyid =...
8
by: John Nagle | last post by:
Here's a wierd problem: I have a little test case for M2Crypto, which just opens up SSL connections to web servers and reads their certificates. This works fine. But if I execute ...
8
by: John Nagle | last post by:
I've been running M2Crypto successfully using Python 2.4 on Windows 2000, and now I'm trying to get it to work on Python 2.3.4 on Linux. Attempting to initialize a context results in Traceback...
7
by: John Nagle | last post by:
Back in March, I posted this: That was for M2Crypto 0.17. It's still broken in M2Crypto 0.18. And there's no RPM or Windows binary. Nobody actually uses this stuff, do they?
2
by: Bojan Mihelac | last post by:
Hi all! I am trying to install M2Crypto to work on OSX10.5 apache (mod_python). Error I receive: Error was: dlopen(/Library/WebServer/eggs/M2Crypto-0.18.2-py2.5-...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.