EAPD-DRB / OG-ZAF

Overlapping-generations macroeconomic model for evaluating fiscal policy in South Africa
https://eapd-drb.github.io/OG-ZAF/
Creative Commons Zero v1.0 Universal
10 stars 10 forks source link

Unable to Access Online UN-WIDER SAM File - HTTP Error 403: Forbidden #72

Closed GuBenda closed 1 month ago

GuBenda commented 2 months ago

I am encountering an error while running the input_output.py which tries to access an online SAM file.

/usr/local/lib/python3.10/dist-packages/ogzaf/input_output.py in 9 storage_options = {"User-Agent": "Mozilla/5.0"} 10 SAM_path = "https://www.wider.unu.edu/sites/default/files/Data/SASAM-2015-Data-Resource.xlsx" ---> 11 SAM = pd.read_excel( 12 SAM_path, 13 sheet_name="Micro SAM 2015"

HTTPError: HTTP Error 403: Forbidden

SeaCelo commented 2 months ago

Thanks @GuBenda. I confirmed this on my machine. Looks to be a common issue. I'll create a PR to use use a backup site in the same way we have the demographics data. This should be done anyway in case the online source is not working or changes.

jdebacker commented 1 month ago

Resolved with PR #73