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

Backtrader, oandapy and OandaError issues



  • I am having trouble with importing backtrader as bt. I currently have Python 3.7.3 on my pc. I am stuck here:

    import backtrader as bt

    I get the following error:
    ~Anaconda3\kub\site-packages\stores\oandastotre.py in <module>
    39 # Extend the exception to support extras cases
    40
    41 class OandaRequestError(oandapy.OandaError):
    42 def init(self):
    43 er = dict(code=599, message='Request Error', description=' ')

    AttributeError: module 'oandapy' has no attribute 'OandaError'

    I have tried to uninstall the packages multiple times. backtrader was working for me until i updated to the current version. Is there a package that I am missing and how do I get it back working.

    I have been working with the program for a while with no issues and I do not know how to fix this issue.

    Thank you.


  • administrators

    Your problem is that you have upgraded oandapy to something which isn't what's needed.


 

});