0
respostas

Arquivo de requirements.txt

Teria como compartilhar o seu arquivo requirements.txt ?

O meu está diferente do seu e quando copio as dependencias para o requirements.txt do ambiente developer console, apresenta erro.

Traceback (most recent call last):

File "C:\Users\rogerio.martins\PycharmProjects\alexa-skills\venv\lib\site-packages\requests\models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Python38\lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "C:\Python38\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python38\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cotacao.py", line 6, in <module>
    print(str(round(bitcoin.info['regularMarketPrice'])) + " dólares"
  File "C:\Users\rogerio.martins\PycharmProjects\alexa-skills\venv\lib\site-packages\yfinance\__init__.py", line 122, in info
    r = _requests.get(url=url).json()["quoteResponse"]["result"]
  File "C:\Users\rogerio.martins\PycharmProjects\alexa-skills\venv\lib\site-packages\requests\models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] Forbidden: 0
(venv) PS C:\Users\rogerio.martins\PycharmProjects\alexa-skills>