我无法在OSX (10.6.7)上编译Phoenix

0 投票
2 回答
832 浏览
提问于 2025-04-16 19:44

我在用OSX自带的Python运行Phoenix矿工,链接是https://en.bitcoin.it/wiki/Phoenix_miner,结果遇到了这个问题:

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

有没有人能告诉我接下来该怎么做?

2 个回答

0

我安装了MacPorts,然后把python27安装到了/opt/local/bin/python这个地方。我下载了Twisted-11.0.0的源代码,并用python27编译了它。我还从源代码编译并安装了pyopencl,现在我可以在Mac 10.6.6上运行phoenix.py了。

1

你可能需要升级你的Twisted版本。11.0应该可以用;对我来说是可以的。试试这个:

sudo easy_install --upgrade twisted

[这假设easy_install会使用系统自带的python。如果你的环境有点奇怪,可以试试 sudo python_version path_to_easy_install --upgrade twisted。]

撰写回答