Exclusive 22% OFF All Quantra by QuantInsti Courses for IBridgePy Users Master algorithmic trading from beginner to advanced — Python for trading, machine learning strategies, options trading, and more.
HUI22 Use HUI22 for 22% off
HUI7 Stack HUI7 for an additional 7% off
Browse Courses →
← Back to Blog

Debug IBridgePy on Mac

September 6, 2018 · debug
Learning how to debug IBridgePy on Mac is crucial for smooth algorithmic trading operations. Mac users occasionally encounter Python module import errors when running IBridgePy. This comprehensive guide will help you debug IBridgePy Mac issues and resolve the most common issues when setting up Python trading software on macOS.
Debug IBridgePy Mac Python trading setup

Common IBridgePy Error on Mac

It is very common to see the following error when IBridgePy runs on Mac.
from IBridgePy import IBCpp
ImportError: dynamic module does not define module export function (PyInit_IBCpp)
The following steps will be helpful to solve the issue.
Step 1. Understand what IBridgePy you have downloaded.
As of 20190817, there are three IBridgePy versions:
IBridgePy_Mac_Anaconda27_64: IBridgePy is running on top of Anaconda python 2.7, 64-bit.
IBridgePy_Mac_Python27_64: IBridgePy is running on plain python 2.7, 64-bit, without Anaconda
IBridgePy_Mac_Python37_64: IBridgePy is running on plain python 3.7, 64-bit, without Anaconda
Step 2. Identify which Python is being used
Make sure you’re using the correct Python version that matches your IBridgePy download. You can check your Python version by running: python --version
For more troubleshooting tips, visit our tutorials or consult our documentation.