python 2.7 - email address not recognised in XML-RPC interface to Neos Server -


i using xml-rpc submission api neos server (optimization, ampl, milp, cplex) , receiving error message "cplex not run unless provide valid email address."

am misinterpreting should provided python template found on neos site[here] , here?

the relevant snippet of neos-provided .py file edited below

import sys import xmlrpclib import time  neos_host="www.neos-server.org" neos_port=3332 contact_email = 'me@mail.com' interface = 'xml-rpc' neos=xmlrpclib.server("http://%s:%d" % (neos_host, neos_port)) ... (jobnumber, password) = neos.submitjob(xml, contact_email, interface) sys.stdout.write("jobnumber = %d \n" % jobnumber) 

besides email error, code works. know because other solvers return result (it seems solvers - though not cplex - don't require email address)

an unrelated question folks using neos server interface, alternatives using regex parse returned output file?

thanks!

the neos server team responded :

add email address xml submitting. in xml, add line

<email> your.address@email.edu </email>  

along fields

<model></model> <data></data> 

etc


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -