简体   繁体   中英

Errno 32 Broken Pipe when using easy.py in libsvm

a few days ago, I was still able to use the easy.py, but today, when I tried again, I got this error [errorno 32] broken pipe, which I haven't had it before. Everything is still the same, I did not change a single thing, recently I only updated java to version 8... That's all...

line = ''
while True:
    last_line = line
    line = f.readline()
    if not line: break
c,g,rate = map(float,last_line.split())

and this is the error:

Scaling training data...
Cross validation...
[Errno 32] Broken pipe
Try "grid.py" for more information.
^CTraceback (most recent call last):
  File "easy.py", line 61, in <module>
    line = f.readline()
KeyboardInterrupt

Have anybody had this error before?
P/S: I tried running it on two different machines, both using mac os 10.9.2, it can run normally on another machine and can't on the other one... The only differernt between them is one uses java and netbean 8, one uses java and netbean 7. On the machine that failed to run the program, I upgraded MAMP PRO in it to 3.03 yesterday.

Probably too late, but did you ever fix this? I've had the same issue, and discovered it was a problem with gnuplot . It wasn't executing properly and once fixed it all went back to normal. It could be that the Java update meant that you also needed to update gnuplot .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM