Dear all,

I am having a lot of trouble using programs I programmed in python 2.5 - having upgraded to 2.6 I find that every function/class that makes use of SSL receives this error:

Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
import ssl
File "C:\Python26\lib\ssl.py", line 81, in <module>
class SSLSocket (socket):
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str

What do I do? I need to solve this by tomorrow and have no idea what is wrong! I am a low level amateur - self-taught. I can't find any reference to this being a common problem when I google it. Help!!

Did you remember to get new versions of your modules when you upgraded ?

I've uninstalled everything (the 2.5 version, and installed and uninstalled 2.6 once or twice) and reinstalled it, so... yes?

Is there an alternate ssl module that I can sub in?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.