2011-06-17 60 views
0

您使用了默認的OSX安裝Python,我試圖運行鳳凰 https://en.bitcoin.it/wiki/Phoenix_miner 和我越來越:我無法編譯鳳凰OSX(10.6.7)

python phoenix.py 
    import itertools, md5 
Traceback (most recent call last): 
    File "phoenix.py", line 29, in <module> 
    import minerutil 
    File "/Users/george/Downloads/phoenix-1.4/minerutil/__init__.py", line 25, in <module> 
    from RPCProtocol import RPCClient 
    File "/Users/george/Downloads/phoenix-1.4/minerutil/RPCProtocol.py", line 30, in <module> 
    from twisted.web.iweb import IBodyProducer 
ImportError: cannot import name IBodyProducer 

能有人建議如何繼續?

回答

1

您可能需要升級Twisted的版本。 11.0應該工作;它爲我做了。試試

sudo easy_install --upgrade twisted 

【這裏假定easy_install會選擇系統python。如果它處於奇怪的狀態,請嘗試sudo python_version path_to_easy_install --upgrade twisted。]

+0

失敗。 https://gist.github.com/1047422 我懷疑由於python被安裝編譯通用,並沒有安裝ppc工具鏈。該怎麼辦? – sdsykes 2011-06-26 09:05:15

0

我安裝了MacPorts,將python27安裝到/ opt/local/bin/python,下載了Twisted-11.0.0源代碼,並使用python27進行編譯。我從源代碼編譯並安裝了pyopencl,現在我可以在Mac 10.6.6上運行phoenix.py。