For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

AttributeError: 'module' object has no attribute 'IBBroker'



  • File "StrategB.py", line 259, in runstrategy
    broker = bt.brokers.IBBroker(**storekwargs)
    AttributeError: 'module' object has no attribute 'IBBroker'
    However, I installed it using pip install git+https://github.com/blampe/IbPy.git


  • administrators

    The most usual problem: you installed using pip but are running inside another environment like Spyder. You have to install it in your environment (the interpreter you use in the shell happens to be another installation)


Log in to reply
 

});