datamade / census

A Python wrapper for the US Census API.
BSD 3-Clause "New" or "Revised" License
633 stars 137 forks source link

KeyError: Long #144

Closed ProvidenceAdu closed 4 months ago

ProvidenceAdu commented 4 months ago

I am reporting an issue I am having with the Census Bureau API wrapper you help maintain.

I had a script that has worked for the last 3 years without any problem. However, I am experiencing errors when I run the script today.

I get a keyError: long whenever I execute the script. I have updated the wrapper to the latest release and I still experience the same problem. I also ran the script in a different Python environment (Google Collab) with the examples on your website, and the same error persists.

Key error2 Key Error

agentdanger commented 4 months ago

https://github.com/datamade/census/pull/143/commits/dcd9330e22b5098951b5778f3045f92316087983 This pull request fixes the issue. I made the change in the core.py file and it works for me. Not sure when they'll accept the pull request and release a new package.

agentdanger commented 4 months ago

image Adding "long" type into core.py

pedrocamargo commented 4 months ago

This seems to be fixed and the issue could be closed