title: AttributeError: 'REST' object has no attribute 'get_bars' (Alpaca trade API + Tensorflow)
body: <p>This is my first post. At least 90%+ of all solutions I find in my infancy of programming have come from stackoverflow.com and I greatly appreciate you all. So much. I would like to give back at some point.</p>
  
  <p>This is the error I've experienced where I cannot find a clear existing answer (perhaps I did not look hard enough. Or smartly enough).</p>
  
  <p>I've recreated this gentleman's tutorial for a simple neural network for the stock market: <a href="https://hackernoon.com/forecasting-market-movements-using-tensorflow-fb73e614cd06" rel="nofollow noreferrer">https://hackernoon.com/forecasting-market-movements-using-tensorflow-fb73e614cd06</a></p>
  
  <p>It was fully functional all the way to graphing its results in tensor board in my browser. I was proud. The next step was to use it as a platform to experiment with my own models.</p>
  
  <p>Upon finding time to do so, I was disheartened to learn that somewhere along the way between then (maybe three weeks ago) and now, it has become non-functional. My guess is that it's a recent change in compatibility. Perhaps Python, Tensorflow, one of the pip installations I've made as a requirement. </p>
  
  <p>After a very brief and helpful foray into the Python debugger (kudos to this gentleman: <a href="https://medium.com/@sourleangchhean/how-to-use-the-python-debugger-43a05a826f82" rel="nofollow noreferrer">https://medium.com/@sourleangchhean/how-to-use-the-python-debugger-43a05a826f82</a>)</p>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>c:\program files\python36\scripts\smarket\generate_dataset.py(49)()
    -> returned_data = api.get_bars(
    (Pdb)
    AttributeError: 'REST' object has no attribute 'get_bars'</p>
  </blockquote>
  
  <p>My troubleshooting skills are very good from engineering, but I have such a barely primordial understanding of computer science that those skills are relatively useless in computer science when I'm completely lost and cannot google a clear, contextually identical issue.</p>
  
  <p>Any help greatly appreciated.</p>
  
  <p>My current pip list is:</p>
  
  <p>absl-py             0.6.1<br>
  alpaca-trade-api    0.24<br>
  astor               0.7.1<br>
  asyncio-nats-client 0.8.2<br>
  certifi             2018.11.29<br>
  chardet             3.0.4
  gast                0.2.0<br>
  grpcio              1.17.1<br>
  h5py                2.9.0<br>
  idna                2.8<br>
  Keras-Applications  1.0.6<br>
  Keras-Preprocessing 1.0.5<br>
  Markdown            3.0.1<br>
  numpy               1.15.4<br>
  pandas              0.23.4<br>
  pip                 18.1<br>
  protobuf            3.6.1<br>
  python-dateutil     2.7.5<br>
  pytz                2018.7<br>
  requests            2.21.0<br>
  scikit-learn        0.20.2<br>
  scipy               1.2.0<br>
  setuptools          40.6.2<br>
  six                 1.12.0<br>
  sklearn             0.0<br>
  TA-Lib              0.4.17<br>
  tensorboard         1.12.1<br>
  tensorflow          1.12.0<br>
  termcolor           1.1.0<br>
  urllib3             1.24.1<br>
  websocket-client    0.54.0<br>
  websockets          7.0<br>
  Werkzeug            0.14.1<br>
  wheel               0.32.3  </p>
  
  <p>I am on Windows 10 running things from a basic cmd prompt run as administrator.</p>
  
  <p>While my primary objective is to get through this error, I would also appreciate any constructive feedback on how to post these kinds of questions optimally here. I'm familiar with general engineering tickets and the concept of providing enough information to not require an intermediary request for information, but I am as green as it gets and would like to do things the way folks here would like them done.</p>
  
  <p>Any help appreciated. Thank you.</p>