kdxing / ibpy

Automatically exported from code.google.com/p/ibpy
Other
0 stars 0 forks source link

Trouble installing IbPy-0.7.6-9.51, error during bytecompile of EReader.py #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

# wget http://ibpy.googlecode.com/files/IbPy-0.7.6-9.51.tar.gz
# tar xfz IbPy-0.7.6-9.51.tar.gz
# cd IbPy-0.7.6-9.51
# python setup.py install

What is the expected output? What do you see instead?

Expected is completed installation, instead I get the output:

running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/ib
copying ib/__init__.py -> build/lib.linux-x86_64-2.7/ib
creating build/lib.linux-x86_64-2.7/ib/lib
copying ib/lib/logger.py -> build/lib.linux-x86_64-2.7/ib/lib
copying ib/lib/__init__.py -> build/lib.linux-x86_64-2.7/ib/lib
copying ib/lib/overloading.py -> build/lib.linux-x86_64-2.7/ib/lib
creating build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/EClientErrors.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/ExecutionFilter.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/ScannerSubscription.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/Contract.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/AnyWrapper.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/EWrapperMsgGenerator.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/OrderState.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/AnyWrapperMsgGenerator.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/EReader.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/Util.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/EWrapper.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/__init__.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/ComboLeg.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/TickType.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/Execution.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/EClientSocket.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/UnderComp.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/Order.py -> build/lib.linux-x86_64-2.7/ib/ext
copying ib/ext/ContractDetails.py -> build/lib.linux-x86_64-2.7/ib/ext
creating build/lib.linux-x86_64-2.7/ib/opt
copying ib/opt/sender.py -> build/lib.linux-x86_64-2.7/ib/opt
copying ib/opt/__init__.py -> build/lib.linux-x86_64-2.7/ib/opt
copying ib/opt/connection.py -> build/lib.linux-x86_64-2.7/ib/opt
copying ib/opt/message.py -> build/lib.linux-x86_64-2.7/ib/opt
copying ib/opt/receiver.py -> build/lib.linux-x86_64-2.7/ib/opt
creating build/lib.linux-x86_64-2.7/ib/sym
copying ib/sym/__init__.py -> build/lib.linux-x86_64-2.7/ib/sym
running install_lib
byte-compiling /usr/local/lib/python2.7/dist-packages/ib/ext/EReader.py to 
EReader.pyc
  File "/usr/local/lib/python2.7/dist-packages/ib/ext/EReader.py", line 29
    from __builtin__ import float, str, None, True, False
SyntaxError: cannot assign to None

running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/IbPy-0.7.6_9.51.egg-info
Writing /usr/local/lib/python2.7/dist-packages/IbPy-0.7.6_9.51.egg-info

What version of the product are you using? On what operating system?
IbPy-0.7.6_9.51, on Linux Mint 15 with Python 2.7 

Please provide any additional information below.

Original issue reported on code.google.com by bvanmarw...@gmail.com on 27 Jul 2013 at 1:17

GoogleCodeExporter commented 8 years ago
seems to be fixed as follows, change line 29 of EReader.py into:

%%% start code %%%

from __builtin__ import float, str, True, False 

%%% end code %%%

i.e. remove the import of None

Original comment by bvanmarw...@gmail.com on 27 Jul 2013 at 1:20

GoogleCodeExporter commented 8 years ago
Thanks for posting the solution.

Original comment by van...@gmail.com on 3 Aug 2013 at 3:42