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
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)
>
<[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
[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
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
[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)
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