3
前幾天,我仍然能夠使用easy.py,但今天,當我再次嘗試時,我得到了這個錯誤[errorno 32]破管,這是我以前沒有過。一切都還是一樣,我並沒有改變單一的事情,我最近才更新的Java 8版本......這一切......Errno 32在使用easy.py在libsvm
line = ''
while True:
last_line = line
line = f.readline()
if not line: break
c,g,rate = map(float,last_line.split())
,這是錯誤:
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
有沒有人有過這個錯誤?
P/S:我試着在兩臺不同的機器上運行它們,都使用mac os 10.9.2,它可以在另一臺機器上正常運行而不能在另一臺機器上運行......它們之間唯一的區別就是使用java和netbean 8,一個使用java和netbean 7.在運行程序失敗的機器上,我昨天升級了MAMP PRO到3.03。
「f」的上下文是什麼?它是如何打開的? –
在Libsvm-3.16和Libsvm-3.17中也發生這種情況 – mad
請向我們展示一個[minimal,complete,and verifiable example](http://stackoverflow.com/help/mcve) '。 – Kevin