You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, new installations in a clean virtualenv on Python 3.9.7 would result in the following error:
File "/private/var/folders/…/zipcodetw/builder.py", line 23, in build
dir_.load_chp_csv(csv_f)
File "/private/var/folders/…/zipcodetw/util.py", line 317, in method_wrapper
retval = method(self, *args, **kargs)
File "/private/var/folders/…/zipcodetw/util.py", line 340, in load_chp_csv
forrowin csv.reader(lines_iter):
File "/Users/…/zipcode_test/venv/lib/python3.9/site-packages/unicodecsv/py3.py", line 55, in __next__
returnself.reader.__next__()
File "/Users/…/zipcode_test/venv/lib/python3.9/site-packages/unicodecsv/py3.py", line 51, in<genexpr>
f = (bs.decode(encoding, errors=errors) forbsin f)
AttributeError: 'str' object has no attribute 'decode'
----------------------------------------
Currently, new installations in a clean virtualenv on Python 3.9.7 would result in the following error:
Running
pip remove unicodecsv && python -m zipcodetw.builder
fixed the issue.It appears that
unicodecsv
has been abandoned as in jdunck/python-unicodecsv#92, and thus no further maintenance are done for the package.We could either:
csv
backport from Python 3, orunicodecsv
as our dependency only when Python version < 3 as shown in PEP 0508.The last one should be the easiest mitigation. Please let me know if a PR is preferred over issues.
The text was updated successfully, but these errors were encountered: