[Twisted-Python] Error when trying to import reactor
I am new to all this so you will have to forgive me. I have a vista machine with python 2.5 on it and I just installed twisted (py2.5), pyOpenSSL (py2.5), and pycrypto (py2.5) but when I try to do the following: "from twisted.internet import reactor" I get the following error: "This application has failed to start because libeay32.dll was not found. Re-installing the application may fix this problem." I then found a copy of libeay32.dll and put it in my System32 folder and then get the following error: "The procedure entry point ERR_load_RAND_string could not be located in the dynamic link library libeay32.dll." I am currently out of ideas on what to do. Any help would be appreciated. Thanks, Ian
On Sun, Mar 8, 2009 at 5:06 AM, Ian Fountain <ian.fountain@gmail.com> wrote:
I am new to all this so you will have to forgive me. I have a vista machine with python 2.5 on it and I just installed twisted (py2.5), pyOpenSSL (py2.5), and pycrypto (py2.5) but when I try to do the following: "from twisted.internet import reactor" I get the following error: "This application has failed to start because libeay32.dll was not found. Re-installing the application may fix this problem." I then found a copy of libeay32.dll and put it in my System32 folder and then get the following error: "The procedure entry point ERR_load_RAND_string could not be located in the dynamic link library libeay32.dll." I am currently out of ideas on what to do. Any help would be appreciated. Thanks,
You need to have openssl install on your machine. Either download the source and compile by yourself of use the binaries from there: http://www.openssl.org/related/binaries.html Florent.
On 09:33 am, florent.aide@gmail.com wrote:
On Sun, Mar 8, 2009 at 5:06 AM, Ian Fountain <ian.fountain@gmail.com> wrote:
I am new to all this so you will have to forgive me. I have a vista machine with python 2.5 on it and I just installed twisted (py2.5), pyOpenSSL (py2.5), and pycrypto (py2.5) but when I try to do the following: "from twisted.internet import reactor" I get the following error: "This application has failed to start because libeay32.dll was not found. Re-installing the application may fix this problem." I then found a copy of libeay32.dll and put it in my System32 folder and then get the following error: "The procedure entry point ERR_load_RAND_string could not be located in the dynamic link library libeay32.dll." I am currently out of ideas on what to do. Any help would be appreciated. Thanks,
You need to have openssl install on your machine. Either download the source and compile by yourself of use the binaries from there:
More importantly you need to have a *matching* version of pyopenssl and openssl installed. Please don't don't manually put libraries into your System32 folder; use packages, or put the dlls somewhere else where you are more likely to find them. It can make problems like this very hard to diagnose, when later you come back and try to properly install openssl, but the version in your system32 directory is somehow getting picked up instead of the version that you just installed. I wanted to refer you to some documentation from here, but the pyopenssl website is oddly silent on which version of OpenSSL to use on Windows. Would whoever built http://sourceforge.net/project/showfiles.php?group_id=31249&package_id=90289 please state which version of win32 openssl it was built against? I'm guessing 0.9.8j, but I'm not too confident in that guess...
Thanks for the quick responses! I admit that putting the dlls directly into the System32 folder was a rookie move, but I desperately wanted to get twisted up and running :). So now I have a few more questions if you don't mind answering them. Like I said before, I am a rookie so I am simply following whatever it tells me to do in the O'Reilly Twisted Network Programming Essentials book so I downloaded and installed the following: pyOpenSSL-0.8.winxp32-py2.5.msi pycrypto-2.0.1.win32-py2.5.exe Twisted_NoDocs-8.2.0.win32-py2.5.exe So do I still have to install openSSL on my machine even though I installed all of those? Also do I have to use Python 2.5 if I want to use pycrypto and pyOpenSSL? And finally I was looking around and I didn't see anything that stated that Vista is even supported. Could that be another problem I might run into. Thanks again for all the help. On Sun, Mar 8, 2009 at 8:17 AM, <glyph@divmod.com> wrote:
On 09:33 am, florent.aide@gmail.com wrote:
On Sun, Mar 8, 2009 at 5:06 AM, Ian Fountain <ian.fountain@gmail.com> wrote:
I am new to all this so you will have to forgive me. I have a vista machine with python 2.5 on it and I just installed twisted (py2.5), pyOpenSSL (py2.5), and pycrypto (py2.5) but when I try to do the following: "from twisted.internet import reactor" I get the following error: "This application has failed to start because libeay32.dll was not found. Re-installing the application may fix this problem." I then found a copy of libeay32.dll and put it in my System32 folder and then get the following error: "The procedure entry point ERR_load_RAND_string could not be located in the dynamic link library libeay32.dll." I am currently out of ideas on what to do. Any help would be appreciated. Thanks,
You need to have openssl install on your machine. Either download the source and compile by yourself of use the binaries from there:
More importantly you need to have a *matching* version of pyopenssl and openssl installed.
Please don't don't manually put libraries into your System32 folder; use packages, or put the dlls somewhere else where you are more likely to find them. It can make problems like this very hard to diagnose, when later you come back and try to properly install openssl, but the version in your system32 directory is somehow getting picked up instead of the version that you just installed.
I wanted to refer you to some documentation from here, but the pyopenssl website is oddly silent on which version of OpenSSL to use on Windows. Would whoever built http://sourceforge.net/project/showfiles.php?group_id=31249&package_id=90289please state which version of win32 openssl it was built against? I'm guessing 0.9.8j, but I'm not too confident in that guess...
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Sun, Mar 8, 2009 at 4:30 PM, Ian Fountain <ian.fountain@gmail.com> wrote:
Thanks for the quick responses! I admit that putting the dlls directly into the System32 folder was a rookie move, but I desperately wanted to get
And I had not fully read your email because I did not see that you manually copied the file to system32, hence my short answer.
twisted up and running :). So now I have a few more questions if you don't mind answering them. Like I said before, I am a rookie so I am simply following whatever it tells me to do in the O'Reilly Twisted Network Programming Essentials book so I downloaded and installed the following: pyOpenSSL-0.8.winxp32-py2.5.msi pycrypto-2.0.1.win32-py2.5.exe Twisted_NoDocs-8.2.0.win32-py2.5.exe So do I still have to install openSSL on my machine even though I installed
Yes. And as Glyph suggested you should use the right version I am using pyopenssl 0.8 (from sourceforge oct 2008) with OpenSSL 0.9.8i (from the installer I pointed to) If using the installer I pointed to earlier, make sure you answer "copy to /bin" instead of copy to system32 (as Glyph stated above)
all of those? Also do I have to use Python 2.5 if I want to use pycrypto and
Yep. You installed the libraries for python 2.5 only (see the names of the files) so you should use python 2.5 if you want to be able to import them.
pyOpenSSL? And finally I was looking around and I didn't see anything that stated that Vista is even supported. Could that be another problem I might run into. Thanks again for all the help.
I am currently working on Vista without problem. Florent.
Well Florent and Glyph, you saved the day :). I downloaded and installed OpenSSL now no errors. One last question... before installing OpenSSL it recommended I get the Visual C++ 2008 Redistributables (which I did)... was this necessary? Thanks again for all your help... I am sure I will be back with more questions soon :). On Sun, Mar 8, 2009 at 12:05 PM, Florent Aide <florent.aide@gmail.com>wrote:
On Sun, Mar 8, 2009 at 4:30 PM, Ian Fountain <ian.fountain@gmail.com> wrote:
Thanks for the quick responses! I admit that putting the dlls directly into the System32 folder was a rookie move, but I desperately wanted to get
And I had not fully read your email because I did not see that you manually copied the file to system32, hence my short answer.
twisted up and running :). So now I have a few more questions if you don't mind answering them. Like I said before, I am a rookie so I am simply following whatever it tells me to do in the O'Reilly Twisted Network Programming Essentials book so I downloaded and installed the following: pyOpenSSL-0.8.winxp32-py2.5.msi pycrypto-2.0.1.win32-py2.5.exe Twisted_NoDocs-8.2.0.win32-py2.5.exe So do I still have to install openSSL on my machine even though I installed
Yes. And as Glyph suggested you should use the right version I am using pyopenssl 0.8 (from sourceforge oct 2008) with OpenSSL 0.9.8i (from the installer I pointed to) If using the installer I pointed to earlier, make sure you answer "copy to /bin" instead of copy to system32 (as Glyph stated above)
all of those? Also do I have to use Python 2.5 if I want to use pycrypto and
Yep. You installed the libraries for python 2.5 only (see the names of the files) so you should use python 2.5 if you want to be able to import them.
pyOpenSSL? And finally I was looking around and I didn't see anything that stated that Vista is even supported. Could that be another problem I might run into. Thanks again for all the help.
I am currently working on Vista without problem.
Florent.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (3)
-
Florent Aide -
glyph@divmod.com -
Ian Fountain