SSL on Windows / Python 3.6.5 not working

31 views
Skip to first unread message

clara

unread,
Apr 22, 2019, 6:33:40 AM4/22/19
to web2py-users
Hello,

I am trying to run Web2py 2.18.5 on Windows 10. I am using Python 3.6.5

python web2py.py -a passw -k server.key -c server.crt -p 443 -i 0.0.0.0

Upon loading a web2py page, I get socket errors continuously, and pages do not load. This is the trace:

-p 443 -c server.crt -k server.key -a passwException in thread Thread-2:
Traceback (most recent call last):
  File "c:\Python36\Lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Users\Clara\projects\connectcap2\web2py\gluon\rocket.py", line 1268, in run
    conn = Connection(*conn)
  File "C:\Users\Clara\projects\connectcap2\web2py\gluon\rocket.py", line 105, in __init__
    self.socket.settimeout(SOCKET_TIMEOUT)
OSError: [WinError 10038] An operation was attempted on something that is not a socket

Exception in thread Thread-4:
Traceback (most recent call last):
  File "c:\Python36\Lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Users\Clara\projects\connectcap2\web2py\gluon\rocket.py", line 1268, in run
    conn = Connection(*conn)
  File "C:\Users\Clara\projects\connectcap2\web2py\gluon\rocket.py", line 105, in __init__
    self.socket.settimeout(SOCKET_TIMEOUT)
OSError: [WinError 10038] An operation was attempted on something that is not a socket

I tried running Python 2.7 and pages load, so the issue is aparently strictly related to python 3.6...

Has anyone been able to run SSL on windows with Python 3.6? Any help will be appreciated.

Regards,

Clara


João Matos

unread,
Apr 23, 2019, 4:52:40 AM4/23/19
to web2py-users
Try disabling the antivirus.

Clara Ferrando

unread,
Apr 23, 2019, 7:26:22 AM4/23/19
to web...@googlegroups.com
Hello Joao,

Thanks for your reply.
I tried it, disabled Windows defender but I am still getting the same error...
It does not happen with Python 2.7 though.
Maybe Python 3 socket module could be causing the issue?

I am open to all suggestions. Thanks,
Clara

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/46rk8csbASY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

João Matos

unread,
Apr 23, 2019, 10:18:13 AM4/23/19
to web2py-users
Yes, I think so.
Try disabling the Windows Firewall.

In my case, when I disable my antivirus (which includes a firewall) the error goes away.
Reply all
Reply to author
Forward
0 new messages