oanda / oandapy

Python wrapper for the OANDA REST API
MIT License
321 stars 147 forks source link

module 'oandapy' has no attribute 'OandaError' #55

Open david2588e opened 4 years ago

david2588e commented 4 years ago

Traceback (most recent call last):

File "", line 5, in import backtrader as bt

File "C:\Users\Liu\Anaconda3\lib\site-packages\backtrader__init__.py", line 62, in from .cerebro import *

File "C:\Users\Liu\Anaconda3\lib\site-packages\backtrader\cerebro.py", line 35, in from .brokers import BackBroker

File "C:\Users\Liu\Anaconda3\lib\site-packages\backtrader\brokers__init__.py", line 40, in from .oandabroker import OandaBroker

File "C:\Users\Liu\Anaconda3\lib\site-packages\backtrader\brokers\oandabroker.py", line 36, in from backtrader.stores import oandastore

File "C:\Users\Liu\Anaconda3\lib\site-packages\backtrader\stores\oandastore.py", line 41, in class OandaRequestError(oandapy.OandaError):

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

koverus commented 3 years ago

I fixed this by ensuring the files were in the correct folders and making sure all imports were not failing.
After, that I traced/tested (using IDE intellisense) what properties were being exposed from the module.