2013-05-21 31 views
0

我加載dulwich到IronPython的,當我嘗試從How to pull from the remote using dulwich?IronPython的模塊沒有屬性的fsync

from dulwich.repo import Repo 
from dulwich.client import HttpGitClient 
local = Repo.init("local", mkdir=True) 
client = HttpGitClient('http://github.com/adammorris/') 
remote_refs = client.fetch("history.js.git",local) 
local["HEAD"] = remote_refs["refs/heads/master"] 

運行下面的示例代碼中,我得到:AttributeError: 'module' object has no attribute 'fsync'

我知道,在AttributeError: 'module' object has no attribute '_getframe'的情況下,通過-X:Frames啓用了適當的呼叫,默認情況下由於性能原因禁用。這是一個類似的情況,如果不是,我應該如何繼續?

編輯: screencap of traceback

+0

你能找出哪個模塊應該有fsync?另外,你在使用什麼操作系統? –

+0

我在Windows 7上運行它,我也將添加回溯。 – toofarsideways

回答

0

這看起來像IronPython issue #7267。我會看看我是否可以修復2.7.4。

+0

謝謝!你會發佈一個補丁嗎? – toofarsideways

+0

2.7.4應該在大約一個月內出來,以及其他一些修補程序。 –

+0

@Jeff_Hardy謝謝,非常感謝! – toofarsideways

相關問題