John Nagle wrote: > 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 (most recent call last): [...] > map()[long(self.ctx)] = self > ValueError: invalid literal for long(): _480e1008_p_SSL_CTX
This is almost certainly because of SWIG that is too old. The minimum required is SWIG 1.3.24. If you cannot upgrade SWIG, the alternative would be to play around with these values to fit your version of SWIG. I'm adding this to the FAQ. -- Heikki Toivonen -- http://mail.python.org/mailman/listinfo/python-list