IBridgePy Installation on M1 Macbook

Hi! I have got TWS API setup and it works (tested it in paper trading), so now I downloaded IBridgePy to integrate them together, but I cannot get it to work.

Every time I attempt to run python RUN_ME.py I get the following error in my terminal:

ImportError: dlopen(/Users/patrickconde/Documents/Algorithmic Trading/IBridgePy_Mac_Python311_64/IBridgePy/IBCpp.so, 0x0002): tried: '/Users/patrickconde/Documents/Algorithmic Trading/IBridgePy_Mac_Python311_64/IBridgePy/IBCpp.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/patrickconde/Documents/Algorithmic Trading/IBridgePy_Mac_Python311_64/IBridgePy/IBCpp.so' (no such file), '/Users/patrickconde/Documents/Algorithmic Trading/IBridgePy_Mac_Python311_64/IBridgePy/IBCpp.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

I have a M1 Pro Macbook Pro, Python 3.11.5 installed via anaconda. 

I have attempted to run it in a different arch emulation, but I cannot get it to cooperate. Does anyone know if there is a arm64 specific version of IBridgePy or are they not compatible yet?

Hi Patrick,



I tried the same on my system (M1 Pro Macbook Pro), and it seems like the current versions available are not compatible with the architecture. However, I would suggest you get in touch with the IBridgePy team once at IBridgePy@gmail.com and they might be able to provide more details about the same.



 

I reached out to the team and they have now implemented a fix for the docker version which is compatible for ARM-based macbooks. I recommend for anyone who previously attempted to install IBridgePy to now download the IBridgePyInDocker zip file on their official website and run it. 

Hi Patrick,



Thanks for sharing!