CivicTechLab / CMFD

Chinese Moral Foundation Dictionary
12 stars 1 forks source link

URLError of the cmfd Python package #1

Open chengjun opened 10 months ago

chengjun commented 10 months ago

I installed the cmfd package successfully but encounter the urlerror when import cmfd

URLError: <urlopen error [Errno 61] Connection refused>

The reason is simple, the python package attempts to access the cmfd_civictech.csv through url.

df = pd.read_csv(r"https://raw.githubusercontent.com/CivicTechLab/CMFD/main/cmfd_civictech.csv")

Please kindly consider embedding the data into the python package itself.

CivicTechLab commented 10 months ago

Thanks for the suggestion! We expect that we will update this dictionary in the future and hope to keep the Python package always linked to the updated dictionary. For users from certain parts of the world, access to Github might be limited. Proxy will be needed to getting connected to the csv file that is hosted on Github.