-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Ar ol adeiladu i'r Pi,
Mewn un ffenest teipio (Ffenestr A):
moses@raspberrypi ~/moses-smt $ python moses.py fetchengine -e Meddalwedd -s en -t cy
moses@raspberrypi ~/moses-smt $ python moses.py start -e Meddalwedd -s en -t cy
Mewn ffenestr arall (Ffenestr B):
moses@raspberrypi ~ $ curl "http://127.0.0.1:8008/translate?q=View+Documents"
yn rhoi'r adroddiad wall yn Ffenestr A:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
return self.callable(*self.args, **self.kwargs)
File "python-server.py", line 174, in translate
result = self._translate(tokenized_src)
File "python-server.py", line 149, in _translate
return proxy.translate(params)
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in single_request
self.send_content(h, request_body)
File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content
connection.endheaders(request_body)
File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 780, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 761, in connect
self.timeout, self.source_address)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
error: [Errno 111] Connection refused
[21/Mar/2016:11:14:04] HTTP
Request Headers:
HOST: 127.0.0.1:8008
Remote-Addr: 127.0.0.1
ACCEPT: */*
USER-AGENT: curl/7.26.0
Metadata
Metadata
Assignees
Labels
No labels