Hello,
when running ./server.py i get the following output
/usr/bin/env: th: No such file or directory
2015-10-16 03:25:57+0200 [-] Log opened.
2015-10-16 03:25:57+0200 [-] WebSocketServerFactory starting on 9000
2015-10-16 03:25:57+0200 [-] Starting factory <autobahn.twisted.websocket.WebSocketServerFactory object at 0x7f4c7cb7a850>
then when i open the localhost:8000 in the browser, the ./server.py will produce this :
2015-10-16 03:27:38+0200 [-] Client connecting: tcp4:127.0.0.1:47696
2015-10-16 03:27:38+0200 [-] WebSocket connection open.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received NULL message of length 15.
2015-10-16 03:27:38+0200 [-] Received ALL_STATE message of length 61.
2015-10-16 03:27:38+0200 [-] + Training SVM on 0 labeled images.
2015-10-16 03:27:41+0200 [-] Received FRAME message of length 3438.
2015-10-16 03:27:41+0200 [-] Received FRAME message of length 4742.
2015-10-16 03:27:42+0200 [-] Received FRAME message of length 7454.
2015-10-16 03:27:42+0200 [OpenFaceServerProtocol,0,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/python/log.py", line 101, in callWithLogger
return callWithContext({"system": lp}, func, _args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, _args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, _args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(args,*kw)
--- ---
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
why = selectable.doRead()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 209, in doRead
return self._dataReceived(data)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 215, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/usr/local/lib/python2.7/dist-packages/autobahn/twisted/websocket.py", line 135, in dataReceived
self._dataReceived(data)
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 1315, in _dataReceived
self.consumeData()
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 1330, in consumeData
while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 1482, in processData
return self.processDataHybi()
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 1793, in processDataHybi
fr = self.onFrameEnd()
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 1920, in onFrameEnd
self._onMessageEnd()
File "/usr/local/lib/python2.7/dist-packages/autobahn/twisted/websocket.py", line 163, in _onMessageEnd
self.onMessageEnd()
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 735, in onMessageEnd
self._onMessage(payload, self.message_is_binary)
File "/usr/local/lib/python2.7/dist-packages/autobahn/twisted/websocket.py", line 166, in _onMessage
self.onMessage(payload, isBinary)
File "./server.py", line 121, in onMessage
self.processFrame(msg['dataURL'], msg['identity'])
File "./server.py", line 285, in processFrame
rep = net.forwardImage(alignedFace)
File "/home/xxxx/openface/demos/web/../../openface/init.py", line 50, in forwardImage
rep = np.array(self.forwardPath(t))
File "/home/xxxx/openface/demos/web/../../openface/init.py", line 43, in forwardPath
self.p.stdin.write(imgPath + "\n")
exceptions.IOError: [Errno 32] Broken pipe
2015-10-16 03:27:42+0200 [-] Connection to/from tcp4:127.0.0.1:47696 lost (<type 'exceptions.IOError'>): [Errno 32] Broken pipe)
2015-10-16 03:27:42+0200 [OpenFaceServerProtocol,0,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "./server.py", line 352, in
reactor.run()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1194, in run
self.mainLoop()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1206, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/epollreactor.py", line 396, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- ---
File "/usr/local/lib/python2.7/dist-packages/twisted/python/log.py", line 101, in callWithLogger
return callWithContext({"system": lp}, func, _args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, _args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, _args, *_kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(args,*kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 610, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 258, in _disconnectSelectable
selectable.connectionLost(failure.Failure(why))
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 293, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.7/dist-packages/autobahn/twisted/websocket.py", line 132, in connectionLost
self._connectionLost(reason)
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 2758, in _connectionLost
WebSocketProtocol._connectionLost(self, reason)
File "/usr/local/lib/python2.7/dist-packages/autobahn/websocket/protocol.py", line 1236, in _connectionLost
txaio.resolve(self.is_closed, self)
exceptions.AttributeError: 'OpenFaceServerProtocol' object has no attribute 'is_closed'
Can you tell me what i am missing ?