Dear list

Since I got recent mosesdecoder code from Github (mid-February 2016) and
built a new version on our servers, I cannot run mosesserver anymore. The
non-server version of moses works fine.

The specific error I get when I request a translation from a running server
is:


*terminate called after throwing an instance of 'girerr::error'  what():
Not string type.  See type() method*

This happens even with the simplest of models, e.g. with the sample models
taken from:

http://www.statmt.org/moses/?n=Development.GetStarted

What does this error mean? Can anyone help me solve my problem?

I have attached the following files:

   - commands.txt: the commands that lead to this error
   - minimal-client.py: a few lines of Python code that request a
   translation
   - server.err: the server STDERR output
   - python-output.txt: the output of minimal-client.py

If you need more information, I will gladly provide it.

Thanks for your help

Mathias


—

Mathias Müller
BIN 2.B.04
Institute of Computational Linguistics
University of Zurich
+41 44 635 75 81
[email protected]
send: "POST /RPC2 HTTP/1.1\r\nHost: localhost:12345\r\nAccept-Encoding: 
gzip\r\nUser-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: 
text/xml\r\nContent-Length: 327\r\n\r\n<?xml 
version='1.0'?>\n<methodCall>\n<methodName>translate</methodName>\n<params>\n<param>\n<value><struct>\n<member>\n<name>text</name>\n<value><string>das
 ist ein kleines 
haus</string></value>\n</member>\n<member>\n<name>word-align</name>\n<value><boolean>1</boolean></value>\n</member>\n</struct></value>\n</param>\n</params>\n</methodCall>\n"
reply: ''
Traceback (most recent call last):
  File "minimal-client.py", line 6, in <module>
    server.translate({"text": "das ist ein kleines haus", "word-align": True})
  File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1301, in single_request
    self.send_content(h, request_body)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1448, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 797, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 778, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error: [Errno 101] Network is unreachable
wget http://www.statmt.org/moses/download/sample-models.tgz
tar xzf sample-models.tgz
cd sample-models

mosesserver -f phrase-model/moses.ini --server-port 12345 2> server.err

python minimal-client.py

Attachment: server.err
Description: Binary data

import xmlrpclib

url = 'http://localhost:12345/RPC2'

server = xmlrpclib.ServerProxy(url, verbose=True)
server.translate({"text": "das ist ein kleines haus", "word-align": True})
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to