ImportError: No module named rand

Asked by Michel Lundell on 2010-10-20

When trying to use the pyOpenSSL module I get the following error:

Traceback (most recent call last):
  File "", line 5, in
  File "C:\Program Files\IronPython 2.6\lib\site-packages\OpenSSL\",
line 11, in C:\Program Files\IronPython 2.6\lib\site-packages\OpenSSL\
ImportError: No module named rand

The looks like

import socket, os
from SocketServer import BaseServer
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
from OpenSSL import SSL

.... etc

Have I missed something in the installation ...

Regards Michel

Question information

English Edit question
pyOpenSSL Edit question
No assignee Edit question
Last query:
Last reply:
Jean-Paul Calderone (exarkun) said : #1

pyOpenSSL primarily provides three extension modules which wrap OpenSSL APIs. You'll need to figure out how to make IronPython load CPython extension modules if you want to use pyOpenSSL on it. I believe it's not necessarily out of the question - there's something called IronClad for IronPython which may help - but I haven't tried this myself, and IronPython isn't "officially" supported by pyOpenSSL.

Can you help with this problem?

Provide an answer of your own, or ask Michel Lundell for more information if necessary.

To post a message you must log in.