errors with python and pyopenssl

16 views
Skip to first unread message

jpaddock

unread,
Apr 2, 2008, 1:31:46 PM4/2/08
to py-transports
I installed on a basic Windows 2003 server
Python 2.5.2
Twisted 2.5 win32 for py2.5
pycrypto 2.0.1 win32 for py2.5
pyopenssl 0.6 win32 for 2.5 even tried pyopenssl 0.7a2 win32 for
2.5

for pyAIMt 0.8a

I contiune to get libeay32.dll and ssleay32.dll errors. (mostly
pointer errors cause the dll's don't have the needed commands)
I searched around and found different version of these files.
But none to to work.

I even went as far as getting the python 2.3 for all of the above
stuff, and still get errors .

Can anyone help me?

thanks

Joe

Norman Rasmussen

unread,
Apr 2, 2008, 2:07:26 PM4/2/08
to py-tra...@googlegroups.com
On Wed, Apr 2, 2008 at 7:31 PM, jpaddock <jpadd...@gmail.com> wrote:
> I contiune to get libeay32.dll and ssleay32.dll errors. (mostly
> pointer errors cause the dll's don't have the needed commands)
> I searched around and found different version of these files.
> But none to to work.

You need to install the OpenSSL binaries. Best place to get them is
http://www.slproweb.com/products/Win32OpenSSL.html

--
- Norman Rasmussen
- Email: nor...@rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/

jpaddock

unread,
Apr 2, 2008, 3:43:11 PM4/2/08
to py-transports

>
> You need to install the OpenSSL binaries. Best place to get them ishttp://www.slproweb.com/products/Win32OpenSSL.html

ok that helped. thanks

But now getting

unable to find a reactor.
Exiting....

ok, this is really starting to make me feel like a moron.

thanks

Joe

Norman Rasmussen

unread,
Apr 2, 2008, 4:32:18 PM4/2/08
to py-tra...@googlegroups.com
On Wed, Apr 2, 2008 at 9:43 PM, jpaddock <jpadd...@gmail.com> wrote:
> unable to find a reactor.
> Exiting....

My Google foo tells me that you should probably try to change
<reactor>default</reactor>
to
<reactor>select</reactor>

I'm not sure that will help, but it's worth the try.

refs: http://code.google.com/p/pyaimt/wiki/OnlineDocumentation and
http://www.google.com/search?q=cache:UZ1O9vWDxjQJ:forum.blathersource.org

jpaddock

unread,
Apr 2, 2008, 5:46:31 PM4/2/08
to py-transports
I tried this in the config.xml still the same problem.

at the end of the hyperlink they where having the same issue.

think maybe it's my config.xml or something in my server config??


On Apr 2, 4:32 pm, "Norman Rasmussen" <nor...@rasmussen.co.za> wrote:
> On Wed, Apr 2, 2008 at 9:43 PM, jpaddock <jpaddoc...@gmail.com> wrote:
> >  unable to find a reactor.
> >  Exiting....
>
> My Google foo tells me that you should probably try to change
>  <reactor>default</reactor>
> to
>  <reactor>select</reactor>
>
> I'm not sure that will help, but it's worth the try.
>
> refs:http://code.google.com/p/pyaimt/wiki/OnlineDocumentationandhttp://www.google.com/search?q=cache:UZ1O9vWDxjQJ:forum.blathersource...

jpaddock

unread,
Apr 3, 2008, 5:54:09 PM4/3/08
to py-transports
On Apr 2, 4:32 pm, "Norman Rasmussen" <nor...@rasmussen.co.za> wrote:
> On Wed, Apr 2, 2008 at 9:43 PM, jpaddock <jpaddoc...@gmail.com> wrote:
> >  unable to find a reactor.
> >  Exiting....
>
> My Google foo tells me that you should probably try to change
>  <reactor>default</reactor>
> to
>  <reactor>select</reactor>
>

doing the above and the below finally got it to work.


PyAIMt 0.8 may not work under windows
to resolve this problem comment (cut) this block in main.py:

# Find the best reactor
reactorchoices = ["epollreactor", "kqreactor", "cfreactor",
"pollreactor", "selectreactor", "posixbase", "default"]
for choice in reactorchoices:
try:
exec("from twisted.internet import %s as bestreactor" %
choice)
if choice in ["selectreactor","default"]:
print selectWarning
break
except:
pass
try:
bestreactor.install()
except:
print "Unable to find a reactor.\nExiting..."
sys.exit(1)

Norman Rasmussen

unread,
Apr 4, 2008, 4:21:29 AM4/4/08
to py-tra...@googlegroups.com
On Thu, Apr 3, 2008 at 11:54 PM, jpaddock <jpadd...@gmail.com> wrote:
> PyAIMt 0.8 may not work under windows
> to resolve this problem comment (cut) this block in main.py:

ahhh, so the magic to figure out the best reactor to use breaks
horribly on windows, brilliant!

jpaddock

unread,
Apr 4, 2008, 2:55:35 PM4/4/08
to py-transports
best part is, I found that fix on a ICQ transport help. http://www.ejabberd.im/pyicqt

so "select" seemed to work the best.
but I will be honest, I don't know what the difference between the
reactors is, or what they even do.

On Apr 4, 4:21 am, "Norman Rasmussen" <nor...@rasmussen.co.za> wrote:

Norman Rasmussen

unread,
Apr 5, 2008, 8:10:45 AM4/5/08
to py-tra...@googlegroups.com
On Fri, Apr 4, 2008 at 8:55 PM, jpaddock <jpadd...@gmail.com> wrote:
> best part is, I found that fix on a ICQ transport help. http://www.ejabberd.im/pyicqt
>
> so "select" seemed to work the best.
> but I will be honest, I don't know what the difference between the
> reactors is, or what they even do.

Basically it's all different way of figuring out when there's new
network data to process. Some of the older (and more compatible)
methods can only handle about 1000 connections before breaking, so if
you've got a server with lots of users then it's important to be able
to switch to the high performace option. If you've only got 50 users
or less then it hardly matters.

Reply all
Reply to author
Forward
0 new messages