I have some issues with running the RUN_ME.py file. It is not working out for me. I tried with python2.7, python3.7 and python3.9. None of them worked. Please help.
Giving the errors below.
Python2.7:
Traceback (most recent call last):
File "RUN_ME.py", line 16, in <module>
from configuration import run_me
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python27_64/configuration.py", line 6, in <module>
from BasicPyLib.BasicTools import roundToMinTick, get_system_info
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python27_64/BasicPyLib/BasicTools.py", line 42
exit(f'EXIT, negative price={price}')
^
SyntaxError: invalid syntax
Python3.7:
Here the python installation is found in
/Library/Frameworks/Python.framework/Versions.
but it searches for python in /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
File "RUN_ME.py", line 16, in <module>
from configuration import run_me
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/configuration.py", line 7, in <module>
from Config.config_defs import UserConfig
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/Config/config_defs.py", line 10, in <module>
from IBridgePy.MarketManagerBase import setup_services
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/IBridgePy/MarketManagerBase.py", line 6, in <module>
import broker_service_factory
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/broker_service_factory/init.py", line 1, in <module>
from .BrokerService import BrokerService
File "/Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/broker_service_factory/BrokerService.py", line 13, in <module>
from IBridgePy import IBCpp
ImportError: dlopen(/Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/IBridgePy/IBCpp.so, 0x0002): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: <C92B9548-140A-36F9-89C3-EAD39D7DEB45> /Users/gudpik/Downloads/IBridgePy_Mac_Python37_64/IBridgePy/IBCpp.so
Reason: tried: '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python' (no such file), '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.7/Python' (no such file, not in dyld cache)
Python3.9:
pip install -r requirements.txt was failing.
Please do help
Hi Vinu,
The error can be due to some missing dependencies on your system. I would suggest you go through this video once and try setting up IBridgePy from scratch as shown in this video with the correct python version. If you still face any issues please feel free to share the details like the Python version on your system, error stack etc. and we can look into it further.
Hope this helps!
Thanks,
Akshay