我在使用IbPy连接Interactive Brokers API时遇到了一些问题。我想导入:
ib.opt导入连接,消息无效
我得到的错误信息是: 来自ib.opt导入连接,消息
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.9-intel/egg/ib/opt/__init__.py", line 30, in <module>
File "build/bdist.macosx-10.9-intel/egg/ib/opt/connection.py", line 22, in <module>
File "build/bdist.macosx-10.9-intel/egg/ib/opt/sender.py", line 11, in <module>
File "build/bdist.macosx-10.9-intel/egg/ib/ext/EClientSocket.py", line 21, in <module>
File "/Library/Python/2.7/site-packages/IbPy-0.7.6_9.51-py2.7.egg/ib/ext/EReader.py", line 29
SyntaxError: cannot assign to None
我的研究已经向我指出了这些网站,但我仍然无法解决这个问题。任何帮助深表感谢。
https://code.google.com/p/ibpy/issues/detail?id=16
系统规格:OSX 10.9.5(Maverick)Python 2.7.8
提前谢谢。
答案 0 :(得分:1)
@achampion解决了问题
使用easy_install或pip并运行pip install IbPy == 0.7.2-9.00;来自ib.opt的python -c'导入连接,消息'