SimFin / simfin

Simple financial data for Python
https://simfin.com/
Other
298 stars 39 forks source link

Bug Report #9

Closed cobap closed 2 years ago

cobap commented 2 years ago

Bug Report

If you experience errors or bugs, please make a serious effort to solve the problem yourself before asking here. The problem is quite likely in your own code and a simple Google search for the error-message may help you solve it. If it is a problem directly related to simfin, then please search the closed GitHub issues, because it may already have been answered there.

Please make sure you have the latest simfin package installed by running:

pip install --upgrade simfin

And make sure you have downloaded fresh data-files from the SimFin server by setting refresh_days=0 (see example below).

If you still cannot solve the problem and need our help, then please provide the following.

Description

Please write a brief description of the bug / error you have experienced.

Getting an error when trying to download simfin data. image

System Details

Code Example

import simfin as sf
from simfin.names import *

sf.set_data_dir('./data/')
sf.set_api_key(api_key=API_KEY)

data = sf.load(dataset='income', variant='annual', market='us', index=[TICKER, REPORT_DATE], refresh_days=0)

Result / Error

Please write the full output and error message you received. You can also indent this text-block by pressing the tab-key to get proper formatting of the error-message.

image

thf24 commented 2 years ago

Hm I can't reproduce this error (tried with Python 3.9 on MacOS). From your screenshot it looks like requests.get is throwing the error. Which version of requests are you using?

import requests
print(requests.__version__)
cobap commented 2 years ago

image

I think has nothing to do with Requests

Yesterday I uninstalled the package. Today, as soon I got your notification, I tried again, installed the package and successfully downloaded the data.

Maybe some error during package install? I'm not sure. Or a internal server error?

Anyway, fell free to close the ticket :D

image

thf24 commented 2 years ago

Great, glad to hear.