[NEOS Support Req #64] Re: Help Error in Neos!
Johan, NEOS has some troubles with non-ascii characters in text files. It should help if you can remove these characters. Jason Sarich On Sun, 23 Nov 2008, johan Garzon Ramirez wrote:
Hello,my name is Johan and Im from Colombia, Ive been using neos lately and it has worked wonderfully, but today I recieved an error from the web page trying to solve my last model saying the following: (I would be really gratefull if someone could tell me what to do or why is this happening.)
thats the link of the error http://neos.mcs.anl.gov/neos/cgi-bin/nph-neos-solver.cgi
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/www/www-neos/linktree/neos/cgi-bin/nph-neos-solver.cgi in ()
8 import NEOS.CGIPrinter
9 cgipage = NEOS.CGIPrinter.CGIPrinter()
10 cgipage.printPage()
11
12
cgipage = <NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>, cgipage.printPage = <bound method CGIPrinter.printPage of <NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>>
/nfs/mcs-homes64/neos/neos/NEOS/CGIPrinter.py in printPage(self=<NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>)
72 self.solverdoc = NeosXML.SolverParser(self.neos.getXML(self.category,self.solver,self.inputMethod))
73
74 self.createJobIn()
75
76
self = <NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>, self.createJobIn = <bound method CGIPrinter.createJobIn of <NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>>
/nfs/mcs-homes64/neos/neos/NEOS/CGIPrinter.py in createJobIn(self=<NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>)
233 self.jobIn +="<%s><![CDATA[%s]]></%s>\n\n" %\
234 (self.solverdoc.items[i].getToken(),
235 value,self.solverdoc.items[i].getToken())
236
237 else:
value = 'sets\r\n\r\ni tipo de alimento /a1*a17/\r\nj tipo de n...on using lp minimizing z;\r\ndisplay x.l,x.m;\r\n\r\n\r\n', self = <NEOS.CGIPrinter.CGIPrinter instance at 0x830730c>, self.solverdoc = <NEOS.NeosXML.SolverParser instance at 0x83b104c>, self.solverdoc.items = [<NEOS.NeosXML.Item instance at 0x83cdecc>, <NEOS.NeosXML.Item instance at 0x83cdf4c>, <NEOS.NeosXML.Item instance at 0x83cdf6c>, <NEOS.NeosXML.Item instance at 0x83cdf8c>], i = 0, ].getToken undefined <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xf3 in position 2564: ordinal not in range(128) args = ('ascii', 'sets\r\n\r\ni tipo de alimento /a1*a17/\r\nj tipo de n...on using lp minimizing z;\r\ndisplay x.l,x.m;\r\n\r\n\r\n', 2564, 2565, 'ordinal not in range(128)') encoding = 'ascii' end = 2565 message = '' object = 'sets\r\n\r\ni tipo de alimento /a1*a17/\r\nj tipo de n...on using lp minimizing z;\r\ndisplay x.l,x.m;\r\n\r\n\r\n' reason = 'ordinal not in range(128)' start = 2564 _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live http://clk.atdmt.com/MRT/go/119462413/direct/01/
participants (1)
-
Jason Sarich