Note that there are some explanatory texts on larger screens.

plurals
  1. POTornado socket.error on ARM
    primarykey
    data
    text
    <p>I'm trying to run a small python webapp on a RasPi using the Tornado server, but whenever I try to start it, I get the error</p> <pre><code>Traceback (most recent call last): File "main.py", line 78, in &lt;module&gt; application.listen(8080) File "/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/web.py", line 1343, in listen server.listen(port, address) File "/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/tcpserver.py", line 113, in listen sockets = bind_sockets(port, address=address) File "/usr/local/lib/python2.7/dist-packages/tornado-3.0.1-py2.7.egg/tornado/netutil.py", line 69, in bind_sockets sock = socket.socket(af, socktype, proto) File "/usr/lib/python2.7/socket.py", line 187, in __init__ _sock = _realsocket(family, type, proto) socket.error: [Errno 97] Address family not supported by protocol </code></pre> <p>I'm reasonably sure I did everything properly</p> <ul> <li>The port I'm attempting to listen on isn't otherwise in use</li> <li>I don't specify an address, but it doesn't seem I need to since the <a href="http://www.tornadoweb.org/en/stable/#hello-world" rel="nofollow">Tornado "hello world"</a> doesn't either (That demo app itself doesn't run either; it gives exactly the same error with a different line number)</li> <li>The same app seemingly runs fine on x86 and x86_64 machines</li> </ul> <p>Is there a different call I need to make on ARM, or is this a bug somewhere in tornado/socket.py? Is there a workaround available?</p> <p>Since it seems to be relevant, the Pi is running the latest Raspbian image from <a href="http://www.raspberrypi.org/downloads" rel="nofollow">this page</a> (downloaded from the second mirror a couple of days ago, so not <em>the</em> latest anymore). I'm currently trying out an older version, and will try out the latest if that doesn't work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload