
Traceback (most recent call last):


 "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\conda\install.py", line 201, in yield_lines

with open(path) as fh:


NotFoundError: [Errno 2] No such file or directory: 'c:\\users\\user\\appdata\\local\\programs\\python\\python39\\pkgs\\menuinst-1.4.7-py36_0\\info\\has_prefix'

Traceback (most recent call last):


 "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner

self.run()


 "/usr/lib/python3.8/threading.py", line 870, in run

self._target(*self._args, **self._kwargs)


 "long-short.py", line 272, in getTotalPrice

bars = self.alpaca.get_barset(stock, "minute", 1)


 "/home/john/GitHub Repo/Long-short/venv/lib/python3.8/site-packages/alpaca_trade_api/rest.py", line 473, in get_barset

resp = self.data_get('/bars/{}'.format(timeframe), params)


 "/home/john/GitHub Repo/Long-short/venv/lib/python3.8/site-packages/alpaca_trade_api/rest.py", line 178, in data_get

return self._request(


 "/home/john/GitHub Repo/Long-short/venv/lib/python3.8/site-packages/alpaca_trade_api/rest.py", line 125, in _request

return self._one_request(method, url, opts, retry)


 "/home/john/GitHub Repo/Long-short/venv/lib/python3.8/site-packages/alpaca_trade_api/rest.py", line 146, in _one_request

resp.raise_for_status()


 "/app/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status

raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://data.alpaca.markets/v1/bars/minute?symbols=SWN&limit=1
