Re: Problem in using Pulp

2006-12-22 Thread Robert Kern
MRAB wrote: > Robert Kern wrote: >> The last character in that string is a double quote. You don't want that. >> What >> you want to do is escape all of the backslashes (or use raw strings to avoid >> the >> escaping altogether). E.g. >> >>"C:\\Documents and >> Settings\\Amit\\Desktop\\glpk

Re: Problem in using Pulp

2006-12-22 Thread MRAB
Robert Kern wrote: > [EMAIL PROTECTED] wrote: > > Thanks, now I am not getting that error, but now I am getting a > > different error: > > -error--- > >GLPK("C:\Documents and > > Settings\Amit\Desktop\glpk-4.9\glpk-4.9\examples\"").solve(prob) >

Re: Problem in using Pulp

2006-12-21 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: > GLPK("C:\Documents and > Settings\Amit\Desktop\glpk-4.9\glpk-4.9\examples\").solve(prob) ^* * This is a no no - the backslash escapes the last quote... - Hendrik -- http://mail.python.o

Re: Problem in using Pulp

2006-12-21 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Thanks, now I am not getting that error, but now I am getting a > different error: > -error--- >GLPK("C:\Documents and > Settings\Amit\Desktop\glpk-4.9\glpk-4.9\examples\"").solve(prob) > File "C:\Documents and Setting

Re: Problem in using Pulp

2006-12-21 Thread [EMAIL PROTECTED]
Thanks, now I am not getting that error, but now I am getting a different error: -error--- GLPK("C:\Documents and Settings\Amit\Desktop\glpk-4.9\glpk-4.9\examples\"").solve(prob) File "C:\Documents and Settings\Amit\Desktop\pulp\pulp.py", line 11

Re: Problem in using Pulp

2006-12-21 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi, > I am trying to run the following example which uses PULP for linear > optimization. But I am getting this error in the last line: "EOL while > scanning single quoted string". > GLPK("C:\Documents and > Settings\Amit\Desktop\glpk-4.9\glpk-4.9\examples\").solve(prob)

Problem in using Pulp

2006-12-21 Thread [EMAIL PROTECTED]
Hi, I am trying to run the following example which uses PULP for linear optimization. But I am getting this error in the last line: "EOL while scanning single quoted string". Can anyone help me with this? thanks Amit --Code from pulp imp